How should I update Status field state in Laravel Nova

  laravel, laravel-nova, vue.js

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'])

So, when my action triggers the job, I update the job state to running

$missingData->job_state = "running";

This is working.

But when the job ends, I update the field with:

$missingData->job_state = "finished";

but the state of the field will not update without a page refresh. Is it possible to change status field without refreshing ?

Source: Laravel

Leave a Reply