Cron Job

Add Cron Job
@csrf

Cron Command

Setup Instructions: Add ONE of these commands to your server's crontab. The Laravel Scheduler is recommended if you have SSH access.
@foreach($commands as $key => $cmd)
{{ $cmd['label'] }} @if($key === 'laravel') Recommended @endif
{{ $cmd['command'] }}
{{ $cmd['description'] }}
@endforeach

Status

Last Run
{{ $status['last_run'] ? \Carbon\Carbon::parse($status['last_run'])->diffForHumans() : 'Never' }}
Last Duration
{{ $status['last_duration'] ? $status['last_duration'] . 'ms' : '-' }}
Total Jobs
{{ $status['total_jobs'] }}
Active Jobs
{{ $status['active_jobs'] }}

Registered Cron Jobs

Add New
@if($cronJobs->count() > 0) @foreach($cronJobs as $cron) @endforeach
Name Schedule Last Run Status Active Actions
{{ $cron->name }}
{{ $cron->method }}
{{ ucwords(str_replace('_', ' ', $cron->schedule)) }} @if($cron->last_run)
{{ $cron->last_run->diffForHumans() }}
@if($cron->last_status === 'success') Success @elseif($cron->last_status === 'failed') Failed @endif @else Never @endif
@if($cron->last_duration) {{ $cron->last_duration_formatted }} @else - @endif
@csrf @method('PATCH')
@csrf
@csrf @method('DELETE')
@else

No cron jobs registered yet.

Add First Cron Job
@endif
@if(!empty($availableCrons))

Available Cron Classes

These classes are available in app/Crons/ directory and can be used when creating cron jobs.

@foreach($availableCrons as $class => $methods) @endforeach
Class Available Methods
{{ $class }} @foreach($methods as $method) {{ $class }}/{{ $method }} @endforeach
@endif

Recent Execution Logs

@csrf @method('DELETE')
@if($recentLogs->count() > 0) @foreach($recentLogs as $log) @endforeach
Cron Job Status Message Duration Time
{{ $log->cronJob->name ?? 'Unknown' }} @if($log->status === 'success') Success @elseif($log->status === 'failed') Failed @else Running @endif {{ Str::limit($log->message, 50) }} {{ $log->execution_time_formatted }} {{ $log->created_at->format('M d, H:i:s') }}
@else

No logs yet. Run the cron to see execution logs.

@endif