uarefans
How to add custom css class to Specifics resource
Hi, imagine i have UserResource and PostResource.
How to add custom css class to PostResource only?
My goals actually add custom class in Table Header but i ask AI or read documentation and is not possible, so maybe you can help how to add custom class css to Resource so i can nested class like .custom .fi-header { apply: px-12; }
Thank you
9 replies
Upgrade v2 to v3, cannot show record and cannot save without error outpput
I try follow documentation step by step upgrade from Filamet v2 to v3, already upgrade livewire 3 and filament 3, i check with composer show my system already using livewire 3 beta and filament 3.0.0.
1. i try using php artisan make:livewire-form Products/EditProduct --edit as sample and form showing but record not show for EditProduct
2. when i try submit nothing happen (can save to database), only in inspect show "Uncaught SyntaxError: unterminated comment livewire.js:8882:1" without any related error message.
What supposed to do to fix that?
I'm using form builder only without Panel Builder
3 replies
Relationship User & Role
i have 3 table
users
roles
user_role
user
1 UserA
2 UserB
role
1 Admin
2 Marketing
user_role
user_id role_id
1 1
1 2
2 2
meaning UserA have roles admin and marketing, User B just Marketing
Model
user
roles() with belongsToMany
I want select multiple dropdown in the User edit forms using Form Builder, i try using docs 2.x version
1. first problem cannot see roles for UserA or UserB
2. second problem, how to save to table user_role ?
my last code using native livewire using synch, can we done with filament? thank you before
1 replies