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

sql - can we replace full join with union of left and right join? why not? -

javascript - Parallax scrolling and fixed footer code causing width issues -

iOS: Performance of reloading UIImage(name:...) -