ikbentomas
ikbentomas
FFilament
Created by ikbentomas on 3/31/2025 in #❓┊help
withoutGlobalScope in Table filter
I have a model that has a status column and a globalScope in the Eloquent model
static::addGlobalScope('active', function (Builder $builder) {
$builder->where('status', 1);
});
static::addGlobalScope('active', function (Builder $builder) {
$builder->where('status', 1);
});
My intention was to make a filter that would disable that globalScope for the table, it should keep the global scope for the global search. I tried adding it to the query Builder but that does not have any effect
Filter::make('include_inactive')
->query(fn (Builder $query): Builder => $query->withoutGlobalScope('active')),
Filter::make('include_inactive')
->query(fn (Builder $query): Builder => $query->withoutGlobalScope('active')),
and removing the globalScope in getEloquentQuery ruins the global search.
2 replies
FFilament
Created by ikbentomas on 2/17/2025 in #❓┊help
Action in infolist does not show the form
No description
12 replies
FFilament
Created by ikbentomas on 12/24/2024 in #❓┊help
Show navigation badge in sub navigation with count of relationship
No description
4 replies
FFilament
Created by ikbentomas on 12/16/2024 in #❓┊help
Can I change the ViewRecord grid layout for more columns?
We're building a system where we can manage servers. The server resource has a lot of sub resources and the first page, the 'ViewServer' page should almost look like a dashboard. It would give the user an overview/summary of all the sub resources. The feedback we got from our users is that they would like a higher information density. Is it possible to change the layout and have 3 or 4 columns? Currently we're using a 'ViewRecord' page and the 'getHeaderWidgets' method, and we can't find a way to change the layout or columns.
4 replies