コード例 #1
0
 /**
  * Show the form for creating a new resource.
  *
  * @return Response
  */
 public function create(Estate $estate_id)
 {
     $estate = Estate::all();
     $estate = \DB::table('estates')->lists('title', 'id');
     $rentaltype = Rentaltype::all();
     $rentaltype = \DB::table('rentaltypes')->lists('title', 'id');
     return view('rentals.create')->with('estate', $estate)->with('rentaltype', $rentaltype);
 }
コード例 #2
0
 /**
  * Show the form for creating a new resource.
  *
  * @return Response
  */
 public function create()
 {
     $rentaltype = Rentaltype::all();
     return view('rentaltypes.create')->with('rentaltypes', $rentaltype);
 }