Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要覆盖登录、注册、注销和 2FA 方法来添加一些逻辑,我如何从供应商那里发布它?,有没有类似的东西php artisan vendor:publish .....
php artisan vendor:publish .....
我发现我可以通过在 boot() 函数中添加流动来覆盖 FortifyServiceProvider 中的任何强化管道:
# overwrite example $this->app->singleton(LoginResponseContract::class, LoginResponse::class); $this->app->singleton(RegisterResponseContract::class, RegisterResponse::class); . . .