Skip to content
Advertisement

How to echo to console in Laravel and Artisan?

I was curious, I’m using Laravel and Artisan for my migrations. Is there a method to output information to the console? I can’t seem to find any information on this. For example:

JavaScript

Advertisement

Answer

Don’t know if you are using Laravel 3 or Laravel 4, and if its also possible in Laravel 3, but i found this in the docs.

JavaScript

EDIT

If you switch to database seeds you can use this to display a message

JavaScript
User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement