/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $cars = Car::all(); return view('cars.index', ['cars' => $cars, 'count' => Car::count()]); }