Kaaiman
Issues when extending resource pages
I am running into issues when overriding pages from a resource. I configure the used resource in a config file from a filament plugin.
The idea for the plugin is to have basic resources (for standard implementations). Where I can extends the resources for custom implementations if needed.
I register the resource by using the following notation in the base resource pages:
I publish the config file in my project and edit the resource to be the CustomTopicResource.
Example:
Package/Plugin:
TopicResource
- EditTopic
- CreateTopic
- ListTopics
- ManageUsers
Laravel project:
CustomTopicResource extending the TopicResource of the plugin.
- EditTopic
- EditTopicChecklist (which also has to declare the getResource method)
Now if I visit the ManageUsers page, the EditTopicChecklist sub navigation item dissapears. Why is this? It is implementing the getResource method. I would have to extend the ManageUsers class to redeclare the static getResource method, which completely destroys the idea of having default implementation without needing to extend anything.
Is there a solution for this or am I doing something wrong here?
2 replies
Dynamic default repeater fields
For an application I am making a custom field which in essence is a repeater, a model can have custom fields which are configured in the config file. I want to load these fields as default in a repeater, how would I do this dynamically?
I see that there is needed a list instead of an associative array for the default value, this is just somehow not possible I think?
4 replies
Different query results with Laravel Octane
I am trying to query results, but with Octane I get different results.
Within an attach action I am trying to do the following query:
When using Octane I get all results, but when not using octane the query is right. How can this be possible and what could I do about this? I am talking about the options query.
1 replies
Laravel Octane and Filament
I am running into issues on production where resources are not the same when refreshing a couple of times. For example: I use the filament shield plugin where I can select permissions for users, sometimes no permissions would load and when i refresh a couple of times it would.
Is this a common issue?
9 replies