Before we dive in, make sure your project meets these requirements:
First, let's add Revisor to your project using Composer. Open your terminal, navigate to your project directory, and run:
composer require indracollective/laravel-revisor
If you'll be using Revisor in Filament, run this command instead:
composer require indracollective/laravel-revisor-filament
Revisor comes with a configuration file that you may want to customise. Publish it to your config directory by running:
php artisan vendor:publish --tag="revisor-config"
You've successfully installed Revisor in your Laravel project. You're now ready to start versioning and publishing your Eloquent Model records with ease.
How can I help you explore Laravel packages today?