LoginSignup
5
6

More than 5 years have passed since last update.

簡単に監査機能が実装できるlaravel-auditing が便利です

Posted at

Laravel Auditing とは

簡単にLaravelに監査機能を付け足すライブラリです。
公式サイト: http://laravel-auditing.com/

使い方

こちらにインストール方法が書いてあります。
5.4+ なら composer でrequire して

php artisan auditing:install

でファイル類をpublish、migrateするだけでインストールが完了します。

インストールが完了したら残りはModelを少し工夫するだけです。

こちらを参考に、Traitとインターフェースを取り込めば、あとは気にしなくても更新ログを残してくれます。

使い時

  • 更新タイミングが謎な処理を解析するとき
  • 深夜バッチの差分を確認したい時(そんな時間に起きてないよ!)
  • 普通に監査機能が必要なプロジェクト
5
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
6