Vector::class, 'duration' => 'double', 'keywords' => 'array', 'is_enabled' => 'boolean', 'action_keywords' => 'array', 'emotion_keywords' => 'array', 'misc_keywords' => 'array', ]; protected $fillable = [ 'type', 'sub_type', 'original_id', 'name', 'description', 'keywords', 'mov_uuid', 'webm_uuid', 'gif_uuid', 'webp_uuid', 'mov_url', 'webm_url', 'gif_url', 'webp_url', 'embedding', 'action_keywords', 'emotion_keywords', 'misc_keywords', ]; protected $hidden = [ 'id', 'created_at', 'updated_at', 'deleted_at', 'type', 'sub_type', 'original_id', 'description', 'mov_uuid', 'webm_uuid', 'gif_uuid', 'webp_uuid', // 'mov_url', // 'webm_url', 'embedding', ]; protected $appends = [ 'ids', ]; protected function ids(): Attribute { return Attribute::make( get: fn ($value, $attributes) => hashids_encode($attributes['id']), ); } }