impecty/rxy-laravel-extend-database is a Laravel package for package description here..
It currently has 0 GitHub stars and 0 downloads on Packagist.
Install it with composer require impecty/rxy-laravel-extend-database.
Discover more Laravel packages by impecty
or browse all Laravel packages to compare alternatives.
Last updated
.
$ composer require Impecty/laravel-extend-database
这是针对于laravel的观察者模型在进行完善的扩展
Model::where('id', '1')->update([
'name' => 'laravel'
]);
如上的方式修改或者删除而观察者事件失效进一步扩展该功能,使用的方式只需要在模型中引用Impecty\LaravelExtend\Database\Eloquent\SEvents即可
use Illuminate\Database\Eloquent\Model;
use Impecty\LaravelExtend\Database\Eloquent\SEvents;
class Category extends Model
{
use SEvents;
}