/** * Display a listing of the resource. * * @return Response */ public function index() { // $total_trusts = Trusts::count(); $definitions = Definitions::all(); $years = Trusts::select('year')->groupBy('year')->lists('year'); return view('watsonv2', ['total' => $total_trusts, 'years' => $years, 'definitions' => $definitions]); }