29 lines
860 B
PHP
29 lines
860 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace Modules\Core\Providers;
|
||
|
|
|
||
|
|
use Illuminate\Support\ServiceProvider;
|
||
|
|
use Modules\Core\Command\AnonymizeCommand;
|
||
|
|
use Modules\Core\Command\ExportCleanupCommand;
|
||
|
|
use Modules\Core\Command\ExportCommand;
|
||
|
|
use Modules\Core\Command\ImportCommand;
|
||
|
|
|
||
|
|
class CoreServiceProvider extends ServiceProvider
|
||
|
|
{
|
||
|
|
public function register(): void {}
|
||
|
|
|
||
|
|
public function boot(): void
|
||
|
|
{
|
||
|
|
$this->loadViewsFrom(__DIR__ . '/../../resources/views', 'core');
|
||
|
|
$this->loadMigrationsFrom(__DIR__ . '/../../database/migrations');
|
||
|
|
|
||
|
|
$this->publishes([
|
||
|
|
__DIR__ . '/../../resources/logos' => public_path('logos/core'),
|
||
|
|
], 'core-assets');
|
||
|
|
|
||
|
|
if ($this->app->runningInConsole()) {
|
||
|
|
$this->commands([AnonymizeCommand::class, ExportCommand::class, ExportCleanupCommand::class, ImportCommand::class]);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|