How do I override getMaxContentWidth() globally?
Hi, I know about the ->maxContentWidth(MaxWidth::Full) method in an AdminPanelProvider, but it applies to every page. I need to apply it only to listRecords pages. Can I overwrite it for example in a AppServiceProvider?
Solution:Jump to solution
I believe Filament uses
xx.index
for list pages. You could create a custom middleware and use something like this
```php
public function handle(Request $request, Closure $next): Response
{...5 Replies
Solution
I believe Filament uses
xx.index
for list pages. You could create a custom middleware and use something like this
@Glebka did you try it in 1 minute? π
no, but you are one of a creators, no one knows filament beter than you. If you say that might work that means it will work
i will test it now
yes, thank you
it worked
I'm not the creator π
This is just a suggestion, and there may be other ways to achieve it..
oh, okey, but still thank you a lot!