php - How to override something from vendor laravel 5 -


i want override

 vendor\laravel\framework\src\illuminate\auth\password\databasetokenrepository.php 

i tried user model in app folder.. not working.. can tell me put it?

so see vendor class. if want override functionality of class can applying method overriding. extends class wan't override, redefine function want override in class. now, can use own class whenever need instead of vendor class.

for example:

class tokenrepo extends databasetokenrepository{     //define functionality here ovrride } 

usages:

$token = new tokenrepo();//instead of original databasetokenrepository 

Comments

Popular posts from this blog

php - How to add and update images or image url in Volusion using Volusion API -

Laravel mail error `Swift_TransportException in StreamBuffer.php line 269: Connection could not be established with host smtp.gmail.com [ #0]` -

c# SetCompatibleTextRenderingDefault must be called before the first -