/** * Show the form for editing the specified resource. * * @param int $id * @return \Illuminate\Http\Response */ public function edit($id) { //Edit data of the cars $cars = CarsModel::findOrFail($id); $admin = AdminProfile::all()->last(); return view('admin.cars.edit.index', ['cars' => $cars, 'admin' => $admin]); }