app/Http/Controllers/RentController.php
/**
     * Show the form for creating a new resource.
     *
     * @return \Illuminate\Http\Response
     */
Show the form for creating a new resource.
@return \Illuminate\Http\Response
Show the form for creating a new resource . @return \ Illuminate \ Http \ Response
public function create()
    {
        $supir = Driver::pluck('nama', 'id');
        $supir->all();
        $kendaraan = Vehicle::pluck('model', 'id');
        $kendaraan->all();
        return view('rent.create', compact('supir', 'kendaraan'));
    }
public function create ( ) { $ supir = Driver :: pluck ( 'nama' , 'id' ) ; $ supir -> all ( ) ; $ kendaraan = Vehicle :: pluck ( 'model' , 'id' ) ; $ kendaraan -> all ( ) ; return view ( 'rent.create' , compact ( 'supir' , 'kendaraan' ) ) ; }
Show the form for creating a new resource.
Show the form for creating a new resource .
// $supir = Driver::all(); // $kendaraan = Vehicle::all(); // return view('rent.create',compact('supir','kendaraan'));