X7Ryan
Define Form Data Mutation in One Place?
Looks like I could just hook into the field's dehydration and modify it there. https://filamentphp.com/docs/3.x/forms/advanced#field-dehydration
3 replies
I installed filament and I can't log in.
Are you using the FilamentUser contract on your User Model? https://filamentphp.com/docs/3.x/panels/users#authorizing-access-to-the-panel
59 replies
How i can get my own data or id of item in widgets.
A widget is essentially at it's core a Livewire component, which means you get access to Livewire features. So you can add a computed property. So if you want to access
$this->data
in the view just add this to the widget class:
Then {{ $this->data }}
in the view will display "something".4 replies
Light/Dark mode switcher outside of Filament
Well like I said I have a Jetstream app that has filament for the admin section. The goal would be to have a light dark mode switch on the Jetstream app since it does not come with one. Rather than making a custom switch from scratch (the Filament one looks quite good). Bonus would be to maintain consistant state between Jetstream and Filament so admins keep their settings when switching between the Jetstream and Filament portions of the app.
3 replies
Table combine multiple values into one column with multiple rows
Yeah for the most part its fine except the second line of the address. I did notice that sorting and filtering is broken because you can only sort/filter on the contents of an actual DB column, not sure if there is an easy fix or if I just need to not have sorting/filtering
16 replies
Table combine multiple values into one column with multiple rows
State I think is perfect. IMO I feel like a view column is a bit much for a simple string with linebreaks and makes more sense if you want to so something more fancy like combing an avatar and username into a column or something.
16 replies
Call auth()->user() from NavigationItems
That seems more reasonable, though not how it's documented here: https://filamentphp.com/docs/3.x/panels/navigation#conditionally-hiding-navigation-items so the question is, is it a bug with Filament that the docs version doesn't work or is it a mistake in the docs?
15 replies
Call auth()->user() from NavigationItems
I recreated it in a bare filament v3 app here: https://github.com/x7ryan/filament-v3-auth-bug
15 replies
Call auth()->user() from NavigationItems
@Geisi1909 in my case the only service provider listed after the panel service provider was the RouteServiceProvider. Since the panel was after the AuthServiceProvider that's not it. Still, just to make sure I did move the panel service provider to the very end and it still was null.
15 replies