AdminLog.php 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php
  2. namespace App\Models;
  3. use Illuminate\Database\Eloquent\Model;
  4. use Prettus\Repository\Contracts\Transformable;
  5. use Prettus\Repository\Traits\TransformableTrait;
  6. /**
  7. * Class AdminLog.
  8. *
  9. * @package namespace App\Models;
  10. * @property int $id
  11. * @property int $m_id
  12. * @property string $url 请求路由
  13. * @property string $msg 说明
  14. * @property string $ip 请求IP
  15. * @property string $data 请求参数
  16. * @property \Illuminate\Support\Carbon|null $created_at
  17. * @property \Illuminate\Support\Carbon|null $updated_at
  18. * @method static \Illuminate\Database\Eloquent\Builder|AdminLog newModelQuery()
  19. * @method static \Illuminate\Database\Eloquent\Builder|AdminLog newQuery()
  20. * @method static \Illuminate\Database\Eloquent\Builder|AdminLog query()
  21. * @method static \Illuminate\Database\Eloquent\Builder|AdminLog whereCreatedAt($value)
  22. * @method static \Illuminate\Database\Eloquent\Builder|AdminLog whereData($value)
  23. * @method static \Illuminate\Database\Eloquent\Builder|AdminLog whereId($value)
  24. * @method static \Illuminate\Database\Eloquent\Builder|AdminLog whereIp($value)
  25. * @method static \Illuminate\Database\Eloquent\Builder|AdminLog whereMId($value)
  26. * @method static \Illuminate\Database\Eloquent\Builder|AdminLog whereMsg($value)
  27. * @method static \Illuminate\Database\Eloquent\Builder|AdminLog whereUpdatedAt($value)
  28. * @method static \Illuminate\Database\Eloquent\Builder|AdminLog whereUrl($value)
  29. * @mixin \Eloquent
  30. */
  31. class AdminLog extends Model implements Transformable
  32. {
  33. use TransformableTrait;
  34. /**
  35. * The attributes that are mass assignable.
  36. *
  37. * @var array
  38. */
  39. protected $guarded = ['id', 'updated_at', 'created_at'];
  40. }