/** * Show the form for editing the specified resource. * * @param int $id * @return \Illuminate\Http\Response */ public function edit($id) { $vehiculo = Vehiculo::find($id); $conductores = Conductor::all(); return view("vehiculo.edit")->with("vehiculo", $vehiculo)->with('conductores', $conductores); }
/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $conductor = Conductor::all(); return view("conductor.index")->with("conductores", $conductor); }