<?php  namespace App\Models;  use App\Traits\HasMarkets; use App\Traits\HasTranslations; use Illuminate\Database\Eloquent\Builder; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Relations\BelongsToMany;  class Filter extends Model { 	use HasFactory, HasTranslations, HasMarkets;  	public array $translatable = ['name', 'display_label'];  	protected $casts = [ 		'active' => 'boolean', 		'required' => 'boolean', 		'dropdown_values' => 'array', 	];  	public function scopeAvailable(Builder $query): Builder{}  	public function categories(): BelongsToMany{}  	protected static function boot(): void 	{ 		parent::boot();  		static::addGlobalScope('currentMarket', function (object $builder) { 			$builder->onCurrentMarket(); 		}); 	} }