tha07
198
6
Laravel

Can you explain this code

Posted 8 months 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.

Reply to

Use Markdown with GitHub-flavored code blocks.