yhy/laravel-lib is a Laravel package for laravel lib.
It currently has 2 GitHub stars and 6 downloads on Packagist (latest version 2.0).
Install it with composer require yhy/laravel-lib.
Discover more Laravel packages by yhy
or browse all Laravel packages to compare alternatives.
Last updated
laravel lib
在model类中例如UserModel使用 use Yhy\LaravelLib\BoolreanSoftDeletes
const DELETED = 'deleted' // 对应数据可的字段,默认为deleted
在model类中例如UserModel
protected $casts = [
'created_at' => new DateTime(),
'text_json' => new Json()
];
在Request类中例如AddUserRequest
public function rules()
{
return [
'amount' => ['required',new AmountRule()],
'email' => ['required',new EmailRule()]
];
}