Filament Page
Hey guys, I am still new to filament and i have a quick question after read the filament page documentation https://filamentphp.com/docs/2.x/admin/pages/actions
i only find an explaination on how to use filament page functions but i didn't find how can i can view this functions as example
this function should as far as know display a button called settings but after i use it directly in filament class nothing appeared so i found that i need to call actions in blade but i cant find any docs on how to do that so anyone have any idea where i can find this infos
12 Replies
are you checking wrong version?
because you tagged with "v3"
but the document URL is "v2"
yea that was my mistake
but still cant find how to add actions in a custom page
which class are you using? is it a custom class or a resource?
no custom class
The page is the livewire component so you have to add the actions to the view. https://filamentphp.com/docs/3.x/actions/adding-an-action-to-a-livewire-component#adding-the-action
yes that's what i want thx
@awcodes plz i have another question i edit the my logic so i can added action modal with a form like this i want when the email not unique to display validation error under the input i added unique on email chain but it didnt appear
You don’t need the adterStateUpdated() ->unique() will add the validation rules automatically.
@awcodes yes thats true but i want to know how to display this message to user as right now when user enter an used email and click send invitation the modal close and nothing happend
Are you doing anything in the action?
@awcodes the user just enter the role and email and then send invitation so the only action is sending
Maybe some insight here. https://filamentphp.com/docs/3.x/forms/validation
thx for support