Htmlable Filter

Does anyone know if a SelectFilter can allow html? I got a filter with getOptionLabelFromRecordUsing that returns a blade file but html is not available.
Solution:
```php ->modifyFormFieldUsing(function (Select $select) { return $select->allowHtml(); ->getOptionLabelFromRecordUsing(function (YourModel $record) { return view('')->render();...
Jump to solution
5 Replies
CodeWithDennis
CodeWithDennis2mo ago
SelectFilter
No description
CodeWithDennis
CodeWithDennis2mo ago
FYI: Works on a normal select field.
No description
CodeWithDennis
CodeWithDennis2mo ago
GitHub
Htmlable Select Filter by CodeWithDennis · Pull Request #14228 · fi...
Description The SelectFilter didn't support the ->allowHtml() method, even though the Select:: form component did. This PR fixes that issue. Visual changes Functional changes Cod...
Solution
CodeWithDennis
CodeWithDennis2mo ago
->modifyFormFieldUsing(function (Select $select) {
return $select->allowHtml();
->getOptionLabelFromRecordUsing(function (YourModel $record) {
return view('')->render();
})
})
->modifyFormFieldUsing(function (Select $select) {
return $select->allowHtml();
->getOptionLabelFromRecordUsing(function (YourModel $record) {
return view('')->render();
})
})
Want results from more Discord servers?
Add your server