Install Laravel Eloquent State Machines
masterInstall the package via Composer and then publish the migrations to your application to set up the necessary database tables for state history tracking.
composer require asantibanez/laravel-eloquent-state-machines
php artisan vendor:publish --provider="Asantibanez\LaravelEloquentStateMachines\LaravelEloquentStateMachinesServiceProvider" --tag="migrations"
php artisan migrate