Laravel route /{slug} error when the slug are not in database – SEO
I have a route in web.php Route::get('/{slug_category}', 'WelcomeController@cdetail')->name('cdetail'); Route::get('/{slug_category}/{slug}', 'WelcomeController@detail')->name('detail'); and my category slug in the database is action, movie when I access /action or /movie its shows well. But when I access something like /test or /something slug that…