/** * Display a listing of the resource. * * @return Response */ public function index() { $starCount = Star::all()->count(); $starLinkCount = DB::table('star_links')->count('destination') / 2; return view('admin.star.index', compact('starCount', 'starLinkCount')); }