Feat: Moving things, updating OTP, cleaning stuff up

This commit is contained in:
2026-07-03 02:15:31 +03:00
parent 15bff15cad
commit ce08287641
23 changed files with 770 additions and 119 deletions
+10 -1
View File
@@ -2,6 +2,7 @@
namespace Modules\Core\Providers;
use Illuminate\Support\Facades\Blade;
use Illuminate\Support\ServiceProvider;
use Modules\Core\Command\AnonymizeCommand;
use Modules\Core\Command\ExportCleanupCommand;
@@ -10,13 +11,21 @@ use Modules\Core\Command\ImportCommand;
class CoreServiceProvider extends ServiceProvider
{
public function register(): void {}
public function register(): void
{
$this->mergeConfigFrom(__DIR__ . '/../../config/core.php', 'core');
}
public function boot(): void
{
$this->loadViewsFrom(__DIR__ . '/../../resources/views', 'core');
Blade::anonymousComponentPath(__DIR__ . '/../../resources/views', 'core');
$this->loadMigrationsFrom(__DIR__ . '/../../database/migrations');
$this->publishes([
__DIR__ . '/../../config/core.php' => config_path('core.php'),
], 'core-config');
$this->publishes([
__DIR__ . '/../../resources/logos' => public_path('static/logos/core'),
__DIR__ . '/../../resources/js/stoic_embed.js' => public_path('js/stoic_embed.js'),