Skip to content

Instantly share code, notes, and snippets.

@npapratovic
Created January 26, 2023 11:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save npapratovic/63f56d0d8b27a30ef331367c17230dca to your computer and use it in GitHub Desktop.
Save npapratovic/63f56d0d8b27a30ef331367c17230dca to your computer and use it in GitHub Desktop.
Right way to extend, modify and use function from vendor folder in your own code
  1. extend class in your /helpers or similar folder
  2. copy and modify function from original class, don't forget to add namespace in new class
  3. call new extended class in your code and use function from new class

NOTE: if this functionality or fix is really usefull for others, fork clone edit original repo and make PR so others can benefit from your work too :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment