FEATURE #2048: add basics of permissions management

This commit is contained in:
Michal Kváček
2017-08-10 23:18:53 +02:00
parent f702ba3a29
commit cccdbda543
18 changed files with 483 additions and 147 deletions
+12 -1
View File
@@ -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'));
}
}