How to create custom helper functions in Laravel 5

Creating simple PHP helper functions in Laravel 5 is not really something that comes out of the box, unlike what is obtained in CodeIgniter. This is one of the very few things I initially missed when I switched from CodeIgniter to Laravel. However, there is a short solution. This might not necessarily be in compliance with Laravel’s best practices, but I kinda like it. Besides, it’s pretty straight forward. Follow these three steps and you are good to go. 1. Create a Helper’s folder Go to your app folder, create…

Read More