Download the PHP package richan-fongdasen/eloquent-blameable without Composer
On this page you can find all versions of the php package richan-fongdasen/eloquent-blameable. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download richan-fongdasen/eloquent-blameable
More information about richan-fongdasen/eloquent-blameable
Files in richan-fongdasen/eloquent-blameable
Package eloquent-blameable
Short Description Blameable behavior implementation for your Eloquent Model in Laravel
License MIT
Homepage https://github.com/richan-fongdasen/eloquent-blameable
Informations about the package eloquent-blameable
Eloquent Blameable
Blameable behavior implementation for your Eloquent Model in Laravel
Synopsis
This package would help you to track the creator and updater of each database record. It would be done by filling the specified attributes with the current user ID automatically. By default, those attributes would be filled when you are saving the Eloquent Model object.
Table of contents
- Setup
- Configuration
- Usage
- License
Setup
Install the package via Composer :
Laravel version compatibility
Laravel version | Blameable version |
---|---|
5.1.x | 1.0.x |
5.2.x - 5.4.x | 1.1.x - 1.2.x |
5.5.x - 5.8.x | 1.3.x |
6.x | 1.4.x |
7.x | 1.5.x |
8.x | 1.6.x |
9.x | 1.8.x |
10.x | 1.9.x |
10.x | 1.10.x |
If you are using Laravel version 5.5+ then you can skip registering the service provider in your Laravel application.
Service Provider
Add the package service provider in your config/app.php
Configuration
Publish configuration file using php artisan
command
The command above would copy a new configuration file to /config/blameable.php
Usage
Add some blameable attributes to your migrations
Attach Blameable behavior into your Model
Override default configuration using static property
Override default configuration using public method
Using Blameable Query Scopes
Accessing Creator / Updater Object
License
The MIT License (MIT). Please see License File for more information.
All versions of eloquent-blameable with dependencies
illuminate/database Version ^8.0|^9.0|^10.0|^11.0
illuminate/support Version ^8.0|^9.0|^10.0|^11.0