I have a console command that runs a helper class and I want to write output with $this->info()
to the console from the helper class.
My code looks like this:
App/Http/Console/Commands/SomeCommand.php
function handle(Helper $helper)
{
return $helper->somefunction();
}
App/Http/SomeHelper.php
function somefunction()
{
//some code
$this->info('send to console');
}
Is there any way to write the output to console from the helper?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire