Laravel Routes Problem

Posted 4 years ago by leelanarasimha

Hi Friends

I have problem in routes in laravel

I defined routes
http://ww.example.com/joke/abcd
Route::get('joke/{slug}', 'JokeController@index');
Working fine

http://ww.example.com/joke/store/abcd
Route::post('joke/store/{slug}', 'JokeController@store');
working fine

Now i want to define url
http://ww.example.com/joke/rating/{slug}/{id}
Route::get('joke/rating/{slug}/{id}', 'JokeController@rating');
Not working, going to 404 error page

Is there any method in defining routes for multiple parameters in the url

Can u help me as i am knew to laravel. I am stuck at this end.

Please sign in or create an account to participate in this conversation.