Reputation: 2423
How can I give line breaks through the php's echo
command to give meaningful status messages during the script's run.
I have tried echo
with /n
but to no avail, I have to use spaces to compensate which is very time consuming. Please help.
Upvotes: 0
Views: 618
Reputation: 60048
You should be using the Artisan output commands:
$this->info('Display this on the screen');
...
$this->error('Something went wrong!');
You can read more about it here on the Laravel Docs
Upvotes: 1