Pritbor
Don't want Create Form to show if No Subscription
I want to show No Subscription notification without showing Create Form when user clicks on Create button in List Page. I have this in create page. I also tried beforeFill but halt gives error.
4 replies
Spatie Permission on filament Multi-tenancy
I am confused how to implment spatie permission for below multi-tenancy design. I have enabled team feature in spatie .I have below three filament panels:-
1. Admin Panel (only accessed by users who will be responsible for managing the app, sales & marketing app, or handling customer)
2. User Panel (access only by individual customer user free or paid)
3. Company Panel or can say Tenancy Panel (access only by paid customer who took subscription for registering company. )
Every customer who has access to Company panel will also have access to its user panel where they can do personal things. But vice versa is not true. So you can say not all customer users will have company tenant unless they have subscription to create one or they are invited by other company tenant owner to be its member.
Further users who have access to Admin panel, they dont have any other panel.
I have N:N multi-tenancy implemented using filament. I have single users table. I have Breeze package for authentication. In jetstream i found a concept of personal team which was mandatory for all users and got created automatically for all users but i dont have this design.
2 replies
Reusing Action arguments in Livewire Action
I'm using a custom edit/update action to change a category's status in Livewire, passing the category ID from the Blade file. My challenge is reusing the category instance retrieved in mountUsing() to fill the form, and again in ->action() to avoid fetching it by ID twice. I also want to avoid using public properties in Livewire.
2 replies
Conditional Eager loading issue
I am trying to eager load for table function in my MemberResource.php but I dont see table list after this. Since I have polymorphic realtionship, so i need to eager load conditionally and that is not working. Where i am going wrong. when I comment out conditional part of eager loading, I see table list.
2 replies
MorphToSelect is too slow
MorphToSelect for reading from large database is too slow. Is there any better alternative or any approach i can apply for chunking here. I have Member model which has MorphOne relationship with Company and User models. I need to select member in lets say LeadResource. Below is the code:-
6 replies
Attach action error in RelationManager
I am getting below error during Select search while performing Attach action in header of Relationship manager. I have BusinessCategory model with N:N relationship with itself. My model has parents() and children() methods. Currently it is only two level. And I using using simple Attach action in the Header.
7 replies
Using Filament Notification number in Frontpage notification icon
I just want to use the unread notification count to be used in bell icon present front end and when auth user clicks on it then is is routed dashbaord panel with notification sidebar open. Please help. I currently have filament dasbord with sliding bar notification panel in backend. How to proceed?
7 replies
How to use Grapejs in FilamentPHP
Has anyone tried Grapejs in FilamentPHP? I am aware of this plugin in Filament but it not enough documentation. https://filamentphp.com/plugins/dotswan-grapesjs .Any further help will be much appreaciated. I tried using this plugin in the field but I am getting all dump code. I
1 replies
Select form not retrieving data using getSearchResultsUsing()
I am using dependent selection using getSearchResultsUsing(). I am in Coupon record creation using handleRecordCreation(). And I am trying to select a user that belongs to a particular Member. In my implementation, A Member is a memberable either as an Individual user or a company. Here, I have to find all users belonging to a company memberable. My Company model has a method allUsers() that returns a collection. I am stuck in getting assigned to user.
3 replies
how to show a MorphOne table in filament Table?
I am struggling to access MorphOne relationship data in my table. I have Member model with MorphOne relationship with User and Company model. And I am trying display logo. But I am failing everytime. I use below code. I get repeat error saying .
16 replies
Adding Livewire in any Builder Block
How to add any livewire component in a Builder Block. I don't want to create blocks each livewire. This will be too much. So is hoping if i coult just copy paste my livewire in a TextArea field. But it is not working for me. I also tried using Livewire::make(Livewire::myclass) but it is again not working nd it hard coding the Liavewire every bock. How can i make it dynamic.
2 replies
Do we have any package for building navigation MenuManager
I am exploring any plugin for MenuManager. Please help. I dint find much. One plugin https://github.com/ryangjchandler/filament-navigation i found but that is not offically registerd in Filament latest version. And i tried beta version but I dint see any thing coming up in my panel. Like no navigation resource got created.
2 replies
How to use CreateAction while creating record
I want to use CreateAction using Modal for my record creation in resource manager. I dont want to use the existing form method in my main resource page. Unfortunately, I followed CreateAction document and applied in the CreateAction present in listing page. But it triggers the form present in the main resource page. Where I am
missing?
5 replies