New design

This commit is contained in:
Mark Gregory
2026-07-01 10:17:41 +01:00
parent 567ab46979
commit 7e6d366043
13 changed files with 435 additions and 37 deletions
+16
View File
@@ -15,7 +15,21 @@ class LaravelModulesServiceProvider extends ModulesServiceProvider
{
$this->registerNamespaces();
$this->registerModules();
$this->loadMigrationsFrom(__DIR__.'/database/migrations');
$this->loadViewsFrom(__DIR__.'/resources/views', 'modules-control');
$this->publishes([
__DIR__.'/database/migrations' => database_path('migrations'),
], 'modules-migrations');
$this->publishes([
__DIR__.'/Database/Seeders' => database_path('seeders/vendor/modules'),
], 'modules-seeders');
if ($this->app['config']->get('modules.admin.enabled', true)) {
$this->loadRoutesFrom(__DIR__.'/routes/web.php');
}
}
/**
@@ -26,6 +40,8 @@ class LaravelModulesServiceProvider extends ModulesServiceProvider
$this->registerServices();
$this->setupStubPath();
$this->registerProviders();
$this->app->singleton(\mpba\Modules\Support\DatabaseModuleRegistry::class);
}
/**