Month / March 2017

As you know, the php artisan command has the –ansi option to force the ANSI colour output. Anyway, if you have developed your artisan command, you may wish to display its output in ANSI colour mode, you can force it by using: Of course, you may put the above code in your construct method.

Read More

When you are writing a Laravel package, usually you need a config file.Also, we will publish the config file in the “boot” method of the service provider.Then, in the “register” method you can get the configuration and use it when you create the instance of “Facade”. Let’s see a typical config file:

Read More