I have a nightly job being run that iterates through different databases
Right now in my job I have:
$storeData = Store::first();
if (! $storeData) {
log_error("No store available");
return;
}
but now I want to cancel out of the job even if the $storeData exists but hasn't completed certain steps.
the Store table has a field called setup_steps
that is an array. I want to cancel out of the job if they don't have steps 3, 4 or 5 in the array. I know of in_array
but how would that work when checking if it has either 3, 4, or 5?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire