I have a route with parameter
Route::get('forum/{ques}', "ForumQuestionsController@show");
Now i want a route something like
Route::get('forum/add', ['middleware' => 'auth:student', 'uses' => "ForumQuestionsController@add"]);
well when i hit localhost:800/forum/add
I get routed to ForumQuestionsController@show
instead of ForumQuestionsController@add
Well I know I can handle this in show method of ForumQuestionsController and return a different view based on the paramter. But I want it in this way.
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/1Sqglse
via IFTTT
Aucun commentaire:
Enregistrer un commentaire