A simple interface for spatie/laravel-activitylog for Laravel Backpack.
- In your terminal
# install the package with composer
$ composer require coziboy/log-user-activity-for-backpack
# Publish view
$ php artisan vendor:publish --provider="Coziboy\LogUserActivityForBackpack\LogUserActivityForBackpackServiceProvider"
# [optional] Add a sidebar_content item for it
php artisan backpack:add-sidebar-content "<li class='nav-item'><a class='nav-link' href='{{ backpack_url('log-user') }}'><i class='nav-icon la la-history'></i> Log User Activity</a></li>"
- Finish all installation steps for spatie/laravel-activitylog, which has been pulled as a dependency. Run its migrations. Most likely it's:
php artisan vendor:publish --provider="Spatie\Activitylog\ActivitylogServiceProvider" --tag="migrations"
php artisan migrate
// To make this work all you need to do is let your model use the Spatie\Activitylog\Traits\LogsActivity-trait
- Change guard configuration values in
config/backpack/base.php
'guard' => null,
Please see the changelog for more information on what has changed recently.
$ composer test
Please see contributing.md for details and a todolist.
If you discover any security related issues, please email tolong@buatin.website instead of using the issue tracker.
MIT. Please see the license file for more information.