/** * Display a listing of the resource. * * @return Response */ public function index() { $contracts = Contract::orderBy('expiry_date', 'desc')->get(); return view('contracts.index')->with('contracts', $contracts); }