AttributeIlluminate\Queue\Attributes\Tries
#[Tries]
In the Queue group, #[Tries] applies this configuration to the target Laravel element. It accepts 1 configuration parameter.
Available since
Laravel 13.0
Targets
class
Parameters
$triesintMaximum number of attempts. Expected type: int.
Practical usage
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Queue\Attributes\Tries;
#[Tries(0)]
class ProcessInvoice implements ShouldQueue
{
public function handle(): void
{
// ...
}
}