Ookma-Kyi
Explore posts from serversFilament::getCurrentPanel() always returns true
I found this bug report https://github.com/filamentphp/filament/issues/14840 that shows others have the same issue as I do. Here a link to my repository with the Filament resources currently implemented https://bitbucket.org/ookma-kyi/ookma-kyi-core/src/main/app/Filament/Resources/. The question now is what is the workaround for the moment?
9 replies
Filament::getCurrentPanel() always returns true
However it seems the user is able to access the route no matter what. Here is the policy code:
I managed to track it down to this bit of code:
Adding a bit of logging it seems even if I access the route outside the admin panel
Filament::getCurrentPanel()
always returns true. To be more specific the line Log::info('Panel: ' . Filament::getCurrentPanel()->getId());
returns admin
even if I am accessing the route itself and not in the admin panel. I can't tell if this is a bug with Filament so I am posting it here.
Thanks9 replies
Set table to use for filament resource
Just create a simple resource to the model_has_roles table which is what Laravel Permission (https://spatie.be/docs/laravel-permission/v6/introduction) uses to assign roles to users
14 replies
Trying to install Filament
Found this: https://stackoverflow.com/questions/9600549/using-a-caret-when-using-git-for-windows-in-powershell
25 replies
Trying to install Filament
I can't afford it. Right now I am getting my Jetbrain license for free as an open source developer ( https://www.jetbrains.com/community/opensource/ ).
25 replies