where('id', '^((?!login|referent|admin).)*$'); Route::get('referents/{id}/games/{idGame}', 'GameController@showOneReferentGame'); Route::group(['middleware' => 'guest'], function () { Route::get('login', 'LoginController@index'); Route::post('login', 'LoginController@authenticate'); Route::get('forgotten', 'LoginController@forgottenPassword'); Route::post('forgotten', 'LoginController@initPassword'); }); Route::group(['middleware' => 'auth'], function () { Route::get('referent', 'ReferentController@index'); Route::get('logout', 'LoginController@logout'); }); Route::group(['middleware' => 'admin'], function () { Route::get('admin', 'AdminController@index'); Route::post('addUser', 'AdminController@addUser'); Route::post('deleteUser', 'AdminController@deleteUser'); Route::post('updateUser', 'AdminController@updateUser'); });