Merge branch 'master' of https://github.com/sebathefox/skolehjem-webapp into master
Conflicts: skolehjem/routes/web.php
This commit is contained in:
@@ -29,7 +29,7 @@ class FeedbackController extends Controller
|
||||
*/
|
||||
public function index(Request $request)
|
||||
{
|
||||
$feedback = Feedbacks::query()->paginate($request->input("limit", 20));
|
||||
$feedback = Feedbacks::query()->orderBy('created_at', 'desc')->paginate($request->input("limit", 20));
|
||||
|
||||
return Response::detect("feedbacks.index", [ "feedback" => $feedback ]);
|
||||
}
|
||||
@@ -60,7 +60,7 @@ class FeedbackController extends Controller
|
||||
$feedbacks = new Feedbacks($requestBody);
|
||||
$feedbacks->save();
|
||||
|
||||
return Response::detect("root.index");
|
||||
return redirect()->route("root.index");
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user