Override a core Laravel 4 class method

后端 未结 2 1314
無奈伤痛
無奈伤痛 2021-02-10 02:19

Apologies if this is a dumb question as a lot of Laravel 4 is new to me. I\'m trying to override a couple of the methods in the core password functionality as I want to define m

2条回答
  •  别跟我提以往
    2021-02-10 03:21

    You should extends the Illuminate\Auth\Reminders\PasswordBroker class, not the \Illuminate\Support\Facades\Password.

    the \Illuminate\Support\Facades\Password class is a Facade, not the final class.

    You can see the final classes of the facades by:

    get_class(Password::getFacadeRoot());
    

提交回复
热议问题