sashalenz / nova-activitylog
A Laravel Nova Activity Resource tool.
1.1.1
2022-03-10 08:08 UTC
Requires
- php: ^7.3|^8.0|^8.1
- laravel/nova: ^2.0|^3.0
- spatie/laravel-activitylog: ^3|^4
README
Laravel Nova ActivityLog resource tool based on spatie/laravel-activitylog
Requirements
This Nova field requires Nova 2 and spatie/laravel-activitylog
Installation
You can install the package into a Laravel app that uses Nova via composer:
composer require sashalenz/nova-activitylog
You can publish the migration for creating extra field named "request" with:
php artisan vendor:publish --provider="Sashalenz\NovaActivitylog\ToolServiceProvider" --tag="migrations"
After publishing the migration you can update existed activity_log table by running the migrations:
php artisan migrate
You can optionally publish the config file with:
php artisan vendor:publish --provider="Sashalenz\NovaActivitylog\ToolServiceProvider" --tag="config"
And you can optionally publish the localization files with:
php artisan vendor:publish --provider="Sashalenz\NovaActivitylog\ToolServiceProvider" --tag="translations"
Usage
// in app/Providers/NovaServiceProvder.php // ... public function tools() { return [ // ... new \Sashalenz\NovaActivitylog\NovaActivitylog(), ]; }
License
The MIT License (MIT). Please see License File for more information.