Laravel send variable to the view
问题 routes.php Route::post("/{user}/{char_name}", array( 'as' => 'char-profile-post', 'uses' => 'ProfileController@postDropDownList')); Route::get("/{user}/{char_name}", array( 'as' => 'char-profile-get', 'uses' => 'ProfileController@getDropDownList')); ProfileController.php public function postDropDownList($user, $char_name) { $user = Auth::user(); $char_name = Input::get('choose'); $char_name_obj = User::find($user->id)->characters()->where('char_name', '=', $char_name)->first(); return