You can set URL back in url creat room or in hotel Route set session URL back and call it in postStore method
domain.com/room/create?ref=domain.com/hotel/example
OR
Route::get('/hotel/{slug}', function($slug){
$id = Hotel::whereSlug($slug)->firstOrFail()->id;
$hotel = Hotel::find($id);
Session::set('url_back', URL::route('hotel',$slug));
return View::make('hotel') ->with('hotel', $hotel);
});
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community