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
Post a Comment