| 1 | <?php |
||
| 15 | class AccessLog extends Model |
||
| 16 | { |
||
| 17 | |||
| 18 | public $timestamps = false; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * The database table used by the model. |
||
| 22 | * |
||
| 23 | * @var string |
||
| 24 | */ |
||
| 25 | protected $table = 'users_access_log'; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * The attributes that are mass assignable. |
||
| 29 | * |
||
| 30 | * @var array |
||
| 31 | */ |
||
| 32 | protected $fillable = ['user_id', 'scope', 'ip_address', 'user_agent', 'loginas_data']; |
||
| 33 | |||
| 34 | protected $casts = [ |
||
| 35 | 'loginas_data' => 'array', |
||
| 36 | ]; |
||
| 37 | |||
| 38 | public static function boot() |
||
| 44 | |||
| 45 | public function user() |
||
| 49 | |||
| 50 | } |
||
| 51 |