Laravel Routes Problem

Posted 4 years ago by leelanarasimha

Hi Friends

I have problem in routes in laravel

I defined routes
Route::get('joke/{slug}', 'JokeController@index');
Working fine
Route::post('joke/store/{slug}', 'JokeController@store');
working fine

Now i want to define url{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.