We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi, I have Laravel command and I want to execute it with cron job. Here's the code:
<?php namespace App\Console\Commands; // ... class TestCommand extends Command { protected $name = 'test'; // ... public function fire() { // code goes here } ... }
I want to be able to execute this command with cron job. How do I do this? Thanks in advance.
The text was updated successfully, but these errors were encountered:
Hi, Please try to call the Artisan command via code. For example:
$exitCode = Artisan::call('email:send', [ 'user' => 1, '--queue' => 'default' ]);
You can find more details at the Laravel documentation.
Sorry, something went wrong.
Thanks a lot, I must have missed it.
No branches or pull requests
Hi,
I have Laravel command and I want to execute it with cron job. Here's the code:
I want to be able to execute this command with cron job. How do I do this? Thanks in advance.
The text was updated successfully, but these errors were encountered: