app/Http/Controllers/TransactionController.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 = Rent::all();
        $kendaraan = Rent::all();
        return view('transaction.create', compact('supir','kendaraan'));
    }
public function create ( ) { $ supir = Rent :: all ( ) ; $ kendaraan = Rent :: all ( ) ; return view ( 'transaction.create' , compact ( 'supir' , 'kendaraan' ) ) ; }
Show the form for creating a new resource.
Show the form for creating a new resource .
// $supir->all(); // $kendaraan->all();