I have a manual job that I want to check/test. The job is located here:
app/Jobs/Leads/LinkFaceBookUTM.php
The contents of the job is:
<?php
namespace App\Jobs\Leads;
use Illuminate\Bus\Queueable;
use App\Models\Customers\Leads;
use App\Models\Customers\LeadDetails;
use Illuminate\Contracts\Queue\ShouldBeUnique;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Queue\SerializesModels;
class LinkFaceBookUTM implements ShouldQueue
{
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
protected $lead;
/**
* Create a new job instance.
* @param Leads $lead;
*
* @return void
*/
public function __construct(Leads $lead)
{
$this->lead = $lead;
}
* @return void
*/
public function handle()
{
$payload = [];
$leads = LeadDetails::whereField('utm-session');
return $leads;
}
}
To test the job out I am running the below:
php artisan Leads/LinkFaceBookUTM:run
I am getting the below error though:
There are no commands defined in the "Leads/LinkFaceBookUTM" namespace.