Umair Ahmed
Umair Ahmed

Reputation: 2423

Give line breaks while running seeder through artisan

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

Answers (1)

Laurence
Laurence

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

Related Questions