AdminActionlog.php 964 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. namespace App\Module\System\Models;
  3. use App\Models\ModelCore;
  4. use Illuminate\Database\Eloquent\SoftDeletes;
  5. /**
  6. * 后台操作日志
  7. *
  8. * Class AdminActionlog
  9. *
  10. * field start
  11. * @property int $id
  12. * @property string $type1
  13. * @property string $unid
  14. * @property int $admin_id 操作的Admin ID
  15. * @property string $object_class 操作对象
  16. * @property string $url 网址
  17. * @property string $before 操作之前
  18. * @property string $after 操作之后
  19. * @property int $status 状态
  20. * @property string $p1 参数1
  21. * @property \Carbon\Carbon $updated_at 更新 时间戳
  22. * @property \Carbon\Carbon $created_at 创建 时间戳
  23. * field end
  24. *
  25. */
  26. class AdminActionlog extends ModelCore
  27. {
  28. protected $casts = [
  29. 'before' => 'array',
  30. 'after' => 'array'
  31. ];
  32. public function admin()
  33. {
  34. return $this->hasOne(Administrator::class, 'id', 'admin_id');
  35. }
  36. }