SelectConstraint::make('competences')
->label("Compétences")
->searchable()
->options(
Technology::pluck("name", "id")
)
->relationship(
name: 'competences',
titleAttribute: 'id',
modifyQueryUsing: fn (Builder $query, Forms\Get $get) => $query->where('technologie_id', $get("competences")),
)
SelectConstraint::make('competences')
->label("Compétences")
->searchable()
->options(
Technology::pluck("name", "id")
)
->relationship(
name: 'competences',
titleAttribute: 'id',
modifyQueryUsing: fn (Builder $query, Forms\Get $get) => $query->where('technologie_id', $get("competences")),
)