Skip to content

Installation


Requirements

Before we dive in, make sure your project meets these requirements:

  • PHP 8.3 or higher
  • Laravel 11.0 or higher

Step 1: Composer Installation

First, let's add Revisor to your project using Composer. Open your terminal, navigate to your project directory, and run:

bash
composer require indra/laravel-revisor

Step 2: Publish the Configuration

Revisor comes with a configuration file that you may want to customise. Publish it to your config directory by running:

bash
php artisan vendor:publish --tag="revisor-config"

That's it!

You've successfully installed Revisor in your Laravel project. You're now ready to start versioning and publishing your Eloquent Model records with ease.