*/ use BelongsToSpace, HasFactory, HasUuids; protected $fillable = [ 'user_id', 'space_id', 'name', 'filters', 'analysis_days', 'analysis_mode', ]; /** @var list */ protected $hidden = [ 'user_id', 'space_id', 'created_at', 'updated_at', ]; protected function casts(): array { return [ 'filters' => 'array', 'analysis_days' => 'integer', 'analysis_mode' => AnalysisMode::class, ]; } /** @return BelongsTo */ public function user(): BelongsTo { return $this->belongsTo(User::class); } }