/** * 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); }
/** * Display a listing of the resource. * * @return Response */ public function index() { $rental = Rental::all(); $estate = Estate::all(); return view('store.index')->with('rentals', $rental)->with('estates', $estate); }