Laravel Auditing (Eloquent Events or Alternatives)

后端 未结 1 577
逝去的感伤
逝去的感伤 2021-01-28 19:58

I am hoping that someone would be able to give me some advice or direction.

I have multiple tables, these tables have created_by and updated_by columns. I use these fiel

相关标签:
1条回答
  • 2021-01-28 20:22

    I would strongly suggest checking out something like laravel-auditing. It gives a rich auditing log for your eloquent models and fits straight into Laravel.

    Say you have your Eloquent model then all you need to do is carry out the appropriate setup instructions and add the OwenIt\Auditing\AuditingTrait to your models that you want to keep an audit log for.

    Saves significantly re-inventing the wheel.

    0 讨论(0)
提交回复
热议问题