public function location(Request $request) { if ($request->isMethod('post')) { $data = array_merge(Session::get('property'), Input::all()); $data['user_id'] = Auth::user()->id; unset($data['_token']); $propertyId = Property::insert($data); return Redirect::to('property/facilities/' . $propertyId . "/create"); } return view('property.location'); }