Cleanup Installer module scaffolding

This commit is contained in:
Nabeel Shahzad
2017-12-13 22:42:45 -06:00
parent 3e3f18fd0c
commit d1a761711a
9 changed files with 32 additions and 59 deletions

View File

@@ -24,28 +24,10 @@ class InstallerServiceProvider extends ServiceProvider
$this->registerConfig();
$this->registerViews();
$this->registerLinks();
$this->registerFactories();
$this->loadMigrationsFrom(__DIR__ . '/../Database/migrations');
}
/**
* Register the service provider.
*/
public function register()
{
//
}
/**
* Add module links here
*/
public function registerLinks()
{
}
/**
* Register the routes
*/
@@ -53,12 +35,20 @@ class InstallerServiceProvider extends ServiceProvider
{
Route::group([
'as' => 'installer.',
'prefix' => 'installer',
// If you want a RESTful module, change this to 'api'
'prefix' => 'install',
'middleware' => ['web'],
'namespace' => 'Modules\Installer\Http\Controllers'
], function() {
$this->loadRoutesFrom(__DIR__ . '/../Http/routes.php');
$this->loadRoutesFrom(__DIR__ . '/../Http/Routes/install.php');
});
Route::group([
'as' => 'installer.',
'prefix' => 'install',
'middleware' => ['web'],
'namespace' => 'Modules\Installer\Http\Controllers'
], function () {
$this->loadRoutesFrom(__DIR__ . '/../Http/Routes/update.php');
});
}