mardi 28 janvier 2020

I have authentic for user and admin

my route is

Route::get('/player', 'PlayerController@index')->name('player')->middleware('player');
Route::post('/player/submit', 'PlayerController@createPlayer');

Route::get('/admin', 'AdminController@index')->name('admin')->middleware('admin');

if i going to user player, it can login to page user. and i try to change url from 128.0.0.1\player to 128.0.0.1\admin he can going to admin

help me to make this clear

Aucun commentaire:

Enregistrer un commentaire