Historiae provides history logging support to Laravel.
Historiae is open-sourced software licensed under the MIT license.
To get started, install Historiae via the Composer package manager:
composer require lais/historiae
After installing the library, register the Historiae\HistoriaeServiceProvider
in your config/app.php
configuration file:
'providers' => [
// Other service providers...
Historiae\HistoriaeServiceProvider::class,
],
The Historiae service provider registers its own database migration directory with the framework, so you should migrate your database after registering the provider. The Historiae migrations will create the tables your application needs to store access logs and change logs:
php artisan migrate
Next, you should run the vendor:publish
command. This command will publish Historiae views, translations and configuration files, so you'll be able to customize your application as you see fit.
php artisan vendor:publish