voyager-inc / simple-histories
Package Log Activity
Installs: 4
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 1
Type:false
Requires
- php: ^8.2
- illuminate/support: ^11.0
This package is auto-updated.
Last update: 2024-05-23 09:45:37 UTC
README
Installation
composer require voyager-inc/simple-histories
Run the command:
php artisan histories:install
php artisan migrate
Usage
use VoyagerInc\SimpleHistories\Interface\LogHistoryInterface; // Coding in file controller public function testLog(Request $request) { $log = app()->get(LogHistoryInterface::class); // Save log $log->saveHistory([ 'action' => 'created_user', 'created_by' => 1 ]); }