hyperlink/laravel-created-by
最新稳定版本:v1.0.2
Composer 安装命令:
composer require hyperlink/laravel-created-by
包简介
Annoyed by writing the created by foreign user id for every model? Use our blueprint function instead
README 文档
README
Annoyed by writing the created by foreign user id for every model? Use our blueprint function instead
Installation
You can install the package via composer:
composer require hyperlink/laravel-created-by
Usage
Schema::create('foo', function (Blueprint $table) { $table->id(); $table->createdBy(); $table->updatedBy(); $table->deletedBy(); $table->restoredBy(); $table->timestamps(); $table->softDeletes(); $table->restoredAt(); });
<?php namespace App\Models; use Hyperlink\CreatedBy\WithCreatedBy; use Illuminate\Database\Eloquent\Model; class Foo extends Model { use WithCreatedBy; use WithUpdatedBy; use WithDeletedBy; use WithRestoredBy; use WithRestoredAt; }
Changelog
Please see CHANGELOG for more information on what has changed recently.
Credits
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 101
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-01-18