fixed content module ( well reverted)

This commit is contained in:
Mark Gregory
2026-07-27 10:05:53 +01:00
parent 8dd9d77762
commit 712b985bc3
22 changed files with 774 additions and 978 deletions
@@ -1,7 +1,4 @@
<?php
declare(strict_types=1);
namespace Modules\Content\Providers;
use Illuminate\Support\ServiceProvider;
@@ -12,18 +9,14 @@ final class ContentServiceProvider extends ServiceProvider
{
public function register(): void
{
$this->mergeConfigFrom(__DIR__.'/../Config/config.php', 'content');
$this->mergeConfigFrom(module_path('Content','Config/config.php'),'content');
$this->app->singleton(PageRenderer::class);
}
public function boot(): void
{
$this->loadRoutesFrom(__DIR__.'/../Routes/web.php');
$this->loadViewsFrom(__DIR__.'/../Resources/views', 'content');
$this->loadMigrationsFrom(__DIR__.'/../Database/Migrations');
if ($this->app->runningInConsole()) {
$this->commands([InstallSaaslandContent::class]);
}
$this->loadMigrationsFrom(module_path('Content','Database/Migrations'));
$this->loadViewsFrom(module_path('Content','Resources/views'),'content');
$this->loadRoutesFrom(module_path('Content','Routes/web.php'));
if ($this->app->runningInConsole()) $this->commands([InstallSaaslandContent::class]);
}
}