toandq71/simple-log

Package Log Activity

Installs: 10

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:false

pkg:composer/toandq71/simple-log

V1.1.4 2024-05-13 08:41 UTC

This package is not auto-updated.

Last update: 2026-01-06 15:27:07 UTC


README

PHP v8.2

Laravel v11.x

Installation

composer require toandq71/simple-log

Run the command:

php artisan histories:install
php artisan migrate

Usage

use toandq71\SimpleLog\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
    ]);
}