'array', ]; const UPDATED_AT = null; /** * The attributes that are mass assignable. * * @var array */ protected $fillable = [ 'ip', 'user_id', 'affected_type', 'affected_id', 'lang_text', 'data', ]; protected static function booted() { Activity::observe(ActivityObserver::class); } public function user() { return $this->belongsTo(User::class, 'user_id'); } public function affected() { return $this->morphTo('affected'); } }