twitter github codepen dribbble rss

Create Laravel Facades Quickly with Realtime Facades

Aside from using global functions, you can use Laravel Facades to create your own helper functions. Normally, you need to create three classes when making custom Laravel Facade. First one is the main class which is the place to put all of your custom functions. The other two are a Service Provider class and a class that extend Illuminate\Support\Facades\Facade. […]

Split Laravel Routes into Multiple Files

If you look at Laravel 5.3, the routes are not defined in one file anymore like in the previous versions instead they are defined in three files under the routes folder. Two files are for URL routes (api.php and web.php), and the other one is for artisan commands (console.php). So, what’s that means? Well, we can […]

How to Make Helper Functions in Laravel 5

When developing a website with Laravel, sometime we need to create a custom helper function that can be called anywhere in our code. For example, we can make a function that returns our site title.

And calling it in our blade template.

In order to be able do that, we’ll be using files autoloading feature in composer. […]