Users can now create a feedback to the admins (Needing a new way to see the message in the admin panel)

This commit is contained in:
Anders
2020-06-30 08:35:40 +02:00
parent d6a9aa0c4f
commit d93fff517a
3 changed files with 13 additions and 10 deletions
@@ -41,14 +41,14 @@ class FeedbackController extends Controller
public function store(Request $request)
{
$requestBody = $request->validate([
"name" => "required|max:255",
"link" => "required|max:255"
"message" => "required",
"suggestion_form" => "required|max:255"
]);
$feedback = new Feedbacks($requestBody);
$feedback->save();
$feedbacks = new Feedbacks($requestBody);
$feedbacks->save();
return Response::detect("feedback.store");
return Response::detect("root.index");
}
/**