Extending Core Classes

b1gw0rm - 1 month ago

When needing to extend a method of a core class do you need to use a custom Laravel service provider to register the extending class in config/app.php so that it overrides the core method? Are there other options?

ryanthompson - 1 month ago

You can register that class binding in any addon service provider most likely. Depends on the class but chances are any will do.

ryanthompson - 1 month ago

There is also a config/streams.php that gives you an opportunity to bind early as well.