*/ use HasFactory; protected $fillable = [ 'name', 'location', 'is_active', ]; protected function casts(): array { return [ 'is_active' => 'boolean', ]; } public function versions(): BelongsToMany { return $this->belongsToMany(DisplayVersion::class, 'display_display_version') ->withPivot('sort_order') ->orderByPivot('sort_order'); } }