Laravel provides many excellent helper functions that are convenient for working with arrays, file paths, strings, and routes, as well as the beloved dd() function.
You can also define your own helper functions for your Laravel applications and PHP packages and import them automatically using Composer.
If you are new to Laravel or PHP, let’s walk through how you might create your own helper functions that are automatically loaded by Laravel.
⏰ Helpers Chapters
00:00 Introduction
01:04 Creating a Custom Helper
02:11 Registering the helper with Composer
02:54 Use a function_exists check
03:39 Use a prefix on your custom functions
04:07 Conclusion
@laravelnews on social:
Instagram: / laravelnews
Twitter: / laravelnews
Facebook: / laravelnews
LinkedIn: / laravel-news
All our screencasting gear:
https://laravelnews.notion.site/Scree...
➫ Business Inquires: [email protected]
----------------------------------------------------------------------
JOIN OUR WEEKLY LARAVEL NEWSLETTER
👉 https://laravel-news.com/newsletter
----------------------------------------------------------------------