1 year ago

Can you explain this code

Posted 1 year ago by tha07

I have this code in the routes web file. I find it difficult to understand.

Route::group(['prefix' => 'admin', 'as' => 'admin'. '.', 'middleware'=>['auth', 'Role:0']], function() {
    Route::get('/', '[email protected]')->name('dash');
    Route::resource('users', 'UserController');

Does it mean that the Role 0 users only have the access to the following Routes?

Please sign in or create an account to participate in this conversation.