Route Group

Ravi Teja
Ravi Teja
Mar 22 · 1 min read

An example has not been documented about laravel route grouping. You can chain attributes in an array like this.

Route::group([  'middleware' => ['admin'],  'as' => 'admin.',  'namespace' => 'Admin',  'prefix' => 'admin'], function () {  Route::get('/', 'DashboardController@index')->name('dashboard');});

Ravi Teja

Written by

Ravi Teja

Full stack developer. Entrepreneur.