芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/www/vendor/laravel/fortify/src/FortifyServiceProvider.php
mergeConfigFrom(__DIR__.'/../config/fortify.php', 'fortify'); $this->registerResponseBindings(); $this->app->singleton( TwoFactorAuthenticationProviderContract::class, TwoFactorAuthenticationProvider::class ); $this->app->bind(StatefulGuard::class, function () { return Auth::guard(config('fortify.guard', null)); }); } /** * Register the response bindings. * * @return void */ protected function registerResponseBindings() { $this->app->singleton(FailedPasswordConfirmationResponseContract::class, FailedPasswordConfirmationResponse::class); $this->app->singleton(FailedPasswordResetLinkRequestResponseContract::class, FailedPasswordResetLinkRequestResponse::class); $this->app->singleton(FailedPasswordResetResponseContract::class, FailedPasswordResetResponse::class); $this->app->singleton(FailedTwoFactorLoginResponseContract::class, FailedTwoFactorLoginResponse::class); $this->app->singleton(LockoutResponseContract::class, LockoutResponse::class); $this->app->singleton(LoginResponseContract::class, LoginResponse::class); $this->app->singleton(TwoFactorLoginResponseContract::class, TwoFactorLoginResponse::class); $this->app->singleton(LogoutResponseContract::class, LogoutResponse::class); $this->app->singleton(PasswordConfirmedResponseContract::class, PasswordConfirmedResponse::class); $this->app->singleton(PasswordResetResponseContract::class, PasswordResetResponse::class); $this->app->singleton(RegisterResponseContract::class, RegisterResponse::class); $this->app->singleton(SuccessfulPasswordResetLinkRequestResponseContract::class, SuccessfulPasswordResetLinkRequestResponse::class); } /** * Bootstrap any application services. * * @return void */ public function boot() { $this->configurePublishing(); $this->configureRoutes(); } /** * Configure the publishable resources offered by the package. * * @return void */ protected function configurePublishing() { if ($this->app->runningInConsole()) { $this->publishes([ __DIR__.'/../stubs/fortify.php' => config_path('fortify.php'), ], 'fortify-config'); $this->publishes([ __DIR__.'/../stubs/CreateNewUser.php' => app_path('Actions/Fortify/CreateNewUser.php'), __DIR__.'/../stubs/FortifyServiceProvider.php' => app_path('Providers/FortifyServiceProvider.php'), __DIR__.'/../stubs/PasswordValidationRules.php' => app_path('Actions/Fortify/PasswordValidationRules.php'), __DIR__.'/../stubs/ResetUserPassword.php' => app_path('Actions/Fortify/ResetUserPassword.php'), __DIR__.'/../stubs/UpdateUserProfileInformation.php' => app_path('Actions/Fortify/UpdateUserProfileInformation.php'), __DIR__.'/../stubs/UpdateUserPassword.php' => app_path('Actions/Fortify/UpdateUserPassword.php'), ], 'fortify-support'); $this->publishes([ __DIR__.'/../database/migrations' => database_path('migrations'), ], 'fortify-migrations'); } } /** * Configure the routes offered by the application. * * @return void */ protected function configureRoutes() { if (Fortify::$registersRoutes) { Route::group([ 'namespace' => 'Laravel\Fortify\Http\Controllers', 'domain' => config('fortify.domain', null), 'prefix' => config('fortify.prefix'), ], function () { $this->loadRoutesFrom(__DIR__.'/../routes/routes.php'); }); } } }