From the Laravel manual, I understand that I can limit the number of times a queued job is retried using either the command line (when starting the queue), or by setting the $tries
property on the job class itself. https://laravel.com/docs/5.6/queues#max-job-attempts-and-timeout
I want to set the maximum number of retries within the job itself, not using the command line, however the job is actually a custom class that inherits from Illuminate\Notifications\Notification
, not an App\Job
. In this case, is it possible to limit the number of tries?
I tried setting the $tries
property in my customer notification, but it had no effect. I am using a custom channel as well, but setting the $tries
there had no effect either.