vendredi 29 mars 2019

How setting laravel-websockets url under /admin to protect it?

Using beyondcode/laravel-websockets packege I can modify config option

'path' => ‘admin/laravel-websockets’ 

to run it under admin, but how to protected access to it to logged user with admin rights, as in my routes/web.php I have group :

Route::group(['middleware' => ['auth', 'isVerified', 'CheckUserStatus'], 'prefix' => 'admin', 'as' => 'admin.'], function () {

Thanks!



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire