I use the Sleeping Owl admin panel in the Laravel project, an error crashes, I found a fix . But, of course, you have to fix it in the vendor directory. The site is on the run and it is convenient to deploy again using git, but each time you have to make changes to the vendor. Tell me how to correctly override the function from vendor, without getting into it. Is this at all possible and correct?
1 answer
You can always remember the PLO in the place where you load the vendor class, load yours. remove use VendorClass;
add use MyClass;
in the MyClass file, redefine the method and that's all ...
use VendorClass; class MyClass extends VendorClass{ public vendorMethod(){} } - to find more where it loads, this class - JohnRoget
|