shareef_morad/logging

logging models actions

dev-master 2024-02-13 18:37 UTC

This package is auto-updated.

Last update: 2025-06-13 21:45:55 UTC


README

log changes on each model and db row

Installation

  • composer require shareef_morad/logging:dev-master
  • add service provider to config/app.php Shareef_Morad\Logging\LoggingServiceProvider::class,
  • run php artisan migrate
  • run php artisan vendor:publish and choose package id

Configration

  • edit config in "config/db-logging.php" every config has its own comment show how it use

usage

  • to log action on model just add use HasLogging; like example:
   <?php

   namespace App\Models;

   use Illuminate\Database\Eloquent\Model;
   use Shareef_Morad\Logging\Models\HasLogging;

   class Slider extends Model{
       use HasLogging;
   }
  • display and search in log go to url "./backend/logging"

support

for any questions contact me at : elsayed_nofal@ymail.com