Custom function in Controller with resource wont work
问题 I have created my own custom function in my RoomsController public function join($id){ return $id; } Then I want to pass variable to it and it says MethodNotAllowedHttpException And my Form looks like this {{Form::open(['action'=> ['RoomsController@join', $room->id], 'method' => 'POST' ])}} {{Form::submit('Join', ['class' => 'btn btn-danger'])}} {{Form::close()}} Also have these routes Route::get('/','PagesController@index'); Route::get('/about', 'PagesController@about'); Route::get('