If you have a big switch statement, or collection of if's, check if you can refactor is to a more readable variant: the lookup table.
💸 Buy some of our products with a nice discount:
https://spatie.be/products?referrer=yt
Links:
Lookup table definition: https://en.wikipedia.org/wiki/Lookup_...
Please note that we do not offer support via YouTube. You can always ask your question via a GitHub discussion in the appropriate repository. The community can answer your question and that way you also help other people with the same question.
📦 Check out our open source packages: https://spatie.be/open-source
❤️ Support us: https://spatie.be/open-source/support...
🐦 Twitter: / spatie_be
🔷 Facebook: / spatie.be
📸 Instagram: / spatie_be