Printing to terminal from Laravel App.

When we want to debug laravel stuff and running a *php artisan serve* on a terminal window, we would like to have a utility similar to printf in C, println in Java.. etc. This can be achieved by the following lines of code:

 

Run your Laravel app and you can see something like below:

Screen Shot 2017-03-29 at 5.32.34 PM

Leave a Reply