Fix the module stubs and sample module for admin closes #201

This commit is contained in:
Nabeel Shahzad
2018-02-28 15:16:36 -06:00
parent 208b6e73dc
commit e7868868c4
8 changed files with 24 additions and 10 deletions

View File

@@ -47,7 +47,7 @@ class SampleServiceProvider extends ServiceProvider
// $this->moduleSvc->addFrontendLink('Sample', '/sample', '', $logged_in=true);
// Admin links:
$this->moduleSvc->addAdminLink('Sample', '/sample/admin');
$this->moduleSvc->addAdminLink('Sample', '/admin/sample');
}
/**
@@ -73,7 +73,7 @@ class SampleServiceProvider extends ServiceProvider
*/
Route::group([
'as' => 'sample.',
'prefix' => 'api/sample/admin',
'prefix' => 'admin/sample',
// If you want a RESTful module, change this to 'api'
'middleware' => ['web', 'role:admin'],
'namespace' => 'Modules\Sample\Http\Controllers\Admin'