# Record when a schedule last ran

> schedule:list shows the next time. It does not store a last run. Write a timestamp from the command if the Vue page needs one.

- URL: https://laravel-vuejs.space/laravel-schedule-last-run-vue
- Author: Anass Ez-zouaine (https://laravel-vuejs.space/author/anass-ez-zouaine)
- Published: 2026-10-11
- Topics: Laravel, VueJs

People searching “Laravel schedule last run” look for a column that does not exist. `routes/console.php` defines the schedule. `php artisan schedule:list` prints the next due time. The Vue page needs a row you write yourself if it must show “last ran”.

> **TL;DR**
>
> -   schedule:list shows the next time.
> -   It does not store a last run.
> -   Write a timestamp from the command if the Vue page needs one.
> -   Do not scrape the scheduler’s mutex and show it as the last success.
>
> **Who it's for:** Laravel + Vue developers
>
> **Applies to:** Laravel 13 · Vue 3

## The fix

```php
use Illuminate\Support\Facades\Schedule;

Schedule::command('reports:daily')->daily()->withoutOverlapping();
```

`withoutOverlapping()` uses the cache so a slow run is not started twice. It is not a history table.

Inside the command, after the work:

```php
Cache::forever('reports.daily.last_run', now()->toIso8601String());
```

Share that string with an admin page. `forever` here means “until the next success overwrites it”, not “keep a history”.

## What to avoid

> **Gotcha**
>
> Do not scrape the scheduler’s mutex and show it as the last success. The mutex means “it is running or it crashed while holding the lock”. Do not run `schedule:work` from the Vue page. The system cron runs `schedule:run` every minute, or the platform does.

## FAQ

**Q: How do I record when a schedule last ran?**

schedule:list shows the next time. It does not store a last run. Write a timestamp from the command if the Vue page needs one.

**Q: What goes wrong with Laravel schedule last run?**

Many developers look for a column that does not exist. Do not scrape the scheduler's mutex and show it as the last success.
