Level 21
One approach would be to add a query parameter to your URL, like ?date=2017-02-23, then in your controller, something like
public function index(Request $request)
{
$collection = MyModel::whereDate('date_column', $request->date)->get();
return view('myview', compact('collection'));
}
(Validation omitted for brevity) :)
You could make "next" and "previous" links pretty easily with Carbon.
1 like