Download the PHP package binarycabin/laravel-author without Composer
On this page you can find all versions of the php package binarycabin/laravel-author. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download binarycabin/laravel-author
More information about binarycabin/laravel-author
Files in binarycabin/laravel-author
Download binarycabin/laravel-author
More information about binarycabin/laravel-author
Files in binarycabin/laravel-author
Vendor binarycabin
Package laravel-author
Short Description A simple way to generate the model's author user when created
License MIT
Package laravel-author
Short Description A simple way to generate the model's author user when created
License MIT
Please rate this library. Is it a good library?
Informations about the package laravel-author
Laravel-Author
A simple way to generate the model's author user when created
This package adds a very simple trait to automatically save the user id who created this model.
Simply add the "\BinaryCabin\LaravelAuthor\Traits\HasAuthorUser;" trait to your model:
If your column name is not "author_user_id", simply add a new property to your model named "authorUserIdFieldName":
protected $authorUserIdFieldName = 'user_id';
This trait also provides a relationship:
and query scope:
All versions of laravel-author with dependencies
PHP Build Version
Package Version
No informations.
The package binarycabin/laravel-author contains the following files
Loading the files please wait ....