job.queued.stub
TLDR
This file is a stub for a queued job class in the Illuminate\Foundation\Console\stubs namespace. It implements the ShouldQueue interface and contains a constructor and a handle method.
Classes
{{ class }}
This class is a queued job that extends the Illuminate\Foundation\Bus\Dispatchable class and implements the ShouldQueue interface. It also uses the InteractsWithQueue, Queueable, and SerializesModels traits.
Methods
__construct()
This method is the constructor of the {{ class }} class. It does not take any parameters.
handle()
This method is the main execution method of the {{ class }} class. It does not take any parameters and has a void return type.
<?php
namespace {{ namespace }};
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldBeUnique;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Queue\SerializesModels;
class {{ class }} implements ShouldQueue
{
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
/**
* Create a new job instance.
*/
public function __construct()
{
//
}
/**
* Execute the job.
*/
public function handle(): void
{
//
}
}