Skip to content

Installation

Installation

composer require cboxdk/laravel-operations
php artisan migrate

The service provider is auto-discovered. The migration creates the operations table; the package owns that schema.

Publish config (optional)

php artisan vendor:publish --tag=operations-config

Schedule the stall sweep

A running operation with an expiresAt deadline is failed once it passes. Run the sweep on a cadence:

use Illuminate\Support\Facades\Schedule;

Schedule::command('operations:sweep-stalled')->everyMinute();