-2

I want something like the bottom line:

Route::get('/{service}', 'SeminarController@index')->where('service','!=',user');

I have a root like the one below:

Route::get('/user', 'UserController@index');

OMR
  • 11,736
  • 5
  • 20
  • 35
  • Route where works with regular expression. So just make correct regular expression. This will maybe help, how to make expression as 'not match' https://stackoverflow.com/questions/406230/regular-expression-to-match-a-line-that-doesnt-contain-a-word – Autista_z Apr 03 '20 at 14:35

1 Answers1

0

Put your route:

Route::get('/{service}', 'SeminarController@index')

under

Route::get('/user', 'UserController@index');

Route::get('/user', 'UserController@index');
Route::get('/{service}', 'SeminarController@index');

that's all

OMR
  • 11,736
  • 5
  • 20
  • 35
Bohdan Petrenko
  • 340
  • 1
  • 7