Download the PHP package kchinkesh/laravel-model-observer without Composer
On this page you can find all versions of the php package kchinkesh/laravel-model-observer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download kchinkesh/laravel-model-observer
More information about kchinkesh/laravel-model-observer
Files in kchinkesh/laravel-model-observer
Download kchinkesh/laravel-model-observer
More information about kchinkesh/laravel-model-observer
Files in kchinkesh/laravel-model-observer
Vendor kchinkesh
Package laravel-model-observer
Short Description A Simple Laravel Package to observe,log and anlaize any changes to Eloquent Model using trait.
License MIT
Package laravel-model-observer
Short Description A Simple Laravel Package to observe,log and anlaize any changes to Eloquent Model using trait.
License MIT
Please rate this library. Is it a good library?
Informations about the package laravel-model-observer
Laravel Model Observer
A Laravel Package to Log and analize all actions performed on a Eloquent Model.
Requirements
- Laravel 7+
- laravel/ui or laravel/breeze or jetstream for authentication purpose
Installation Instructions
- From Your Project's root Terminal run:
composer require kchinkesh/laravel-model-observer
- Register the Package
- Laravel 5.5 and up Uses package auto discovery feature, no need to edit the config/app.php file.
- Run the migration to add the table to record the activities to:
php artisan migrate
Note: If you want to specify a different table or connection make sure you update your .env file with the needed configuration variables.
- Optionally publish the packages views, config file, assets, and language files by running the following from your projects root folder:
php artisan vendor:publish --tag=LaravelModelObserver
Usage
Trait Usage
Events can be recorded directly by using the trait inside your Model. To use the Trait:
- Include the call in the head of your model class file:
use kchinkesh\LaravelModelObserver\App\Traits\ModelsObserver;
- Include the trait call in the opening of your model class:
use ModelsObserver;
Routes
Model Activity Dashboard Routes
- /actions
- /actions/view/{id}
Screenshots
New Post
Posts
Edit Post
Model Logs
New Post Created Log
Post attributes change log
All versions of laravel-model-observer with dependencies
PHP Build Version
Package Version
No informations.
The package kchinkesh/laravel-model-observer contains the following files
Loading the files please wait ....