I added the following line to Console/Kernal
protected function schedule(Schedule $schedule) { $schedule->command('queue:work') ->everyMinute() ->appendOutputTo($filePath); }
Then at the cmd prompt, I ran the following artisan command to run the scheduled tasks, but I get the following error
php artisan schedule:run
Error:
[Symfony\Component\Debug\Exception\FatalErrorException] Call to undefined method Illuminate\Console\Scheduling\Event::appendOutputTo()
Where, as when using ->sendOutputTo($filename) , instead it works fine, of course, it does not add, but overwrites the file.
Thanks,
TO
source share