khaltis
khaltis
FFilament
Created by Oddman on 11/8/2023 in #❓┊help
Little bit confused by table filters
can i see the whole $table
109 replies
FFilament
Created by Oddman on 11/8/2023 in #❓┊help
Little bit confused by table filters
this should replace your
->query(fn (EloquentBuilder $query, $state): EloquentBuilder => $query->hasAuthor($state['value']))
->query(fn (EloquentBuilder $query, $state): EloquentBuilder => $query->hasAuthor($state['value']))
109 replies
FFilament
Created by Oddman on 11/8/2023 in #❓┊help
Little bit confused by table filters
->query(function (Builder $query, array $state) {
if (!empty($state['value'])) {
$query->hasAuthor($state['value']);
}
return $query;
})
->query(function (Builder $query, array $state) {
if (!empty($state['value'])) {
$query->hasAuthor($state['value']);
}
return $query;
})
109 replies
FFilament
Created by Oddman on 11/8/2023 in #❓┊help
Little bit confused by table filters
try wrapping your query modifier in a if(!empty($state['value'])) { ... }
109 replies