Closed piterssson closed 4 years ago
Sorry, I don’t think I understand, perhaps you can explain your request with a use case?
Sorry, I don’t think I understand, perhaps you can explain your request with a use case?
I would like to add where (query builder) to query in SelectPlus field
So, to understand better, you want a way that you can filter out specific relational models that can be attached/synced to a particular resource/model specifically when it is not searchable? (You are able to do any kind of ->where()
or other query methods if you are making the select ajaxSearchable
, as in the docs.)
like:
SelectPlus::make('States Lived In', 'statesLivedIn')
->optionsQuery(function ($query) {
$query->where(..');
});
does that sound like what you're asking for?
So, to understand better, you want a way that you can filter out specific relational models that can be attached/synced to a particular resource/model specifically when it is not searchable? (You are able to do any kind of
->where()
or other query methods if you are making the selectajaxSearchable
, as in the docs.)like:
SelectPlus::make('States Lived In', 'statesLivedIn') ->optionsQuery(function ($query) { $query->where(..'); });
does that sound like what you're asking for?
great :) thanks
Added in v1.0.7
I would like to add clausere "where" from select belongsToMany. Now when added join and where show all fields....