toandq71/simple-log

Package Log Activity

Maintainers

Package info

github.com/toandq71/simple-log

Type:false

pkg:composer/toandq71/simple-log

Statistics

Installs: 10

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

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

This package is not auto-updated.

Last update: 2026-03-31 16:29:48 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
    ]);
}