FEATURE #2048: add basics of permissions management
This commit is contained in:
@@ -20,9 +20,21 @@ class RouteServiceProvider extends ServiceProvider
|
||||
*/
|
||||
public function map()
|
||||
{
|
||||
$this->mapAdminRoutes();
|
||||
$this->mapWebRoutes();
|
||||
}
|
||||
|
||||
/**
|
||||
* Define the "admin" routes for the application.
|
||||
* These routes all receive session state, CSRF protection, etc.
|
||||
* @return void
|
||||
*/
|
||||
protected function mapAdminRoutes()
|
||||
{
|
||||
Route::namespace($this->namespace.'\\Admin')
|
||||
->group(base_path('routes/admin.php'));
|
||||
}
|
||||
|
||||
/**
|
||||
* Define the "web" routes for the application.
|
||||
* These routes all receive session state, CSRF protection, etc.
|
||||
@@ -31,7 +43,6 @@ class RouteServiceProvider extends ServiceProvider
|
||||
protected function mapWebRoutes()
|
||||
{
|
||||
Route::namespace($this->namespace)
|
||||
->middleware('web')
|
||||
->group(base_path('routes/web.php'));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user