publishes([ __DIR__ . '/../config' => config_path(), ], 'config'); // Register the command if we are using the application via the CLI . if ($this->app->runningInConsole()) { $this->commands([ SyncFromLDCWeb::class, ]); } // * Cron Report everyday $this->app->booted(function () { /** @var \Illuminate\Console\Scheduling\Schedule */ $schedule = $this->app->make(Schedule::class); $schedule->command('ldcweb:admin-secure-sync')->daily(); }); $router = $this->app->make(Router::class); $router->aliasMiddleware('admin-secure', AdminSecureMiddleware::class); } /** * Register any application services. * * @return void */ public function register() { $this->mergeConfigFrom( sprintf('%s/../config/admin-secure.php', __DIR__), 'admin-secure' ); } }