Lestah
294
4
Laravel

laravel route error

Posted 4 months ago by Lestah

On my web.php I'm trying to change one of the route from


question/{id} to question/{slug}

//so i did this

Route::resource('questions', 'QuestionsController')->except('show');
Route::get('/questions/{slug}', '[email protected]')->name('questions.show');

//but whenever i check php artisan route:list it says
//Call to a member function except() on null

what does it mean? how can i solve this error?

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