callSilent('vendor:publish', [ '--provider' => FortifyServiceProvider::class, ]); $this->registerFortifyServiceProvider(); $this->components->info('Fortify scaffolding installed successfully.'); } /** * Register the Fortify service provider in the application configuration file. */ protected function registerFortifyServiceProvider(): void { if (! method_exists(ServiceProvider::class, 'addProviderToBootstrapFile')) { return; } ServiceProvider::addProviderToBootstrapFile(\App\Providers\FortifyServiceProvider::class); } }