Install Laravel Model Flags
mainInstall the package via Composer and set up the required database table for storing flags.
composer require spatie/laravel-model-flags
# Publish and run the migrations to create the `flags` table
php artisan vendor:publish --tag="model-flags-migrations"
php artisan migrate