Added "orderBy" function to event and feedback.

This commit is contained in:
Anders
2020-08-03 08:46:38 +02:00
parent 1f5660001e
commit 1d63879117
3 changed files with 3 additions and 9 deletions
@@ -31,7 +31,7 @@ class EventController extends Controller
public function index(Request $request)
{
$events = Event::query()->paginate($request->input("limit", 20));
$events = Event::query()->orderBY('date' , 'asc')->paginate($request->input("limit", 20));
//returns the function with events index page and a parameter of events.
//also Response::detect checks screen size to determine if user is on a computer or mobile.