mergeConfigFrom(__DIR__.'/../config/config.php', 'ad-sync'); } public function boot(): void { $this->loadMigrationsFrom(__DIR__.'/../database/migrations'); Gate::define('manage-directory-sync', fn (User $user): bool => $user->ad_guid === null && $user->id === config('ad-sync.admin-id')); if ($this->app->runningInConsole()) { $this->commands([SyncActiveDirectory::class]); } } }