I’m trying to implement a status field for Laravel Nova:
So, I have a job that takes 10 sec.
Here is my definition:
Status::make('Etat', 'job_state') ->loadingWhen(['waiting', 'running']) ->failedWhen(['failed']),
So, when my action triggers the job, I update the job state to
$missingData->job_state = "running"; $missingData->update();
This is working.
But when the job ends, I update the field with:
$missingData->job_state = "finished"; $missingData->update();
but the state of the field will not update without a page refresh. Is it possible to change status field without refreshing ?