| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- <?php
- namespace App\Module\System\Models;
- use UCore\ModelCore;
- use Illuminate\Database\Eloquent\SoftDeletes;
- /**
- * 后台操作日志
- *
- * Class AdminActionlog
- *
- * field start
- * @property int $id
- * @property string $type1
- * @property string $unid
- * @property int $admin_id 操作的Admin ID
- * @property string $object_class 操作对象
- * @property string $url 网址
- * @property array $before 操作之前
- * @property array $after 操作之后
- * @property int $status 状态
- * @property string $p1 参数1
- * @property \Carbon\Carbon $updated_at
- * @property \Carbon\Carbon $created_at
- * field end
- *
- */
- class AdminActionlog extends ModelCore
- {
- // attrlist start
- protected $fillable = [
- 'id',
- 'type1',
- 'unid',
- 'admin_id',
- 'object_class',
- 'url',
- 'before',
- 'after',
- 'status',
- 'p1',
- ];
- // attrlist end
- protected $casts = [
- 'before' => 'array',
- 'after' => 'array'
- ];
- public function admin()
- {
- return $this->hasOne(Administrator::class, 'id', 'admin_id');
- }
- }
|