Download the PHP package berthott/laravel-userstamps without Composer
On this page you can find all versions of the php package berthott/laravel-userstamps. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download berthott/laravel-userstamps
More information about berthott/laravel-userstamps
Files in berthott/laravel-userstamps
Download berthott/laravel-userstamps
More information about berthott/laravel-userstamps
Files in berthott/laravel-userstamps
Vendor berthott
Package laravel-userstamps
Short Description Laravel Helper for Userstamps in Laravel
License MIT
Package laravel-userstamps
Short Description Laravel Helper for Userstamps in Laravel
License MIT
Please rate this library. Is it a good library?
Informations about the package laravel-userstamps
Laravel-Userstamps
A helper to maintain Userstamps in Laravel. Easily add and maintain userstamps by adding a trait to your model.
Installation
Usage
- Create your table and corresponding model, eg. with
php artisan make:model YourModel -m
- Add
$table->userstamps()
to your migration- If you use the
SoftDeletes
trait on your model additionally add$table->softDeletesUserstamp()
- If you use the
- Add the
HasUserstamps
trait to your newly generated model. - For some more macros see
\berthott\Userstamps\UserstampsServiceProvider::register()
creator()
,editor()
, anddestroyer()
will be available for your convenience.
Options
You may change the column names by adding these constants to your model.
Note that in this case you cannot use $table->userstamps()
but need to define the columns separately with
Compatibility
Tested with Laravel 10.x.
Credits
Inspired by https://github.com/WildsideUK/Laravel-Userstamps and https://github.com/hrshadhin/laravel-userstamps.
License
See License File. Copyright © 2023 Jan Bladt.
All versions of laravel-userstamps with dependencies
PHP Build Version
Package Version
No informations.
The package berthott/laravel-userstamps contains the following files
Loading the files please wait ....