sohail
`goToWizardStep` is not working in test
Hi i am trying to validate some data in each step of my form wizard but i seem like i can not start the form on the 2nd step as per doc when i use the go to Wizard step
i can error saying it still on the first step
Ps i dont have skipable steps
2 replies
database notifications conditionally hide mark as unread/read button
I can add those buttons to a notification, but I only want it to be rendered if it is actually needed. If the notification is read. I don't know how I can inject a dependency in the closure, so I can conditionally hide it
7 replies
how to check when an action us canceled
Hi i am writing a action of test of a action the is cancel if some condition are not met my question how to i write test for the for
halt()
we have assertTableBulkActionHalted
but i did find any assertion for cancle2 replies
how to set the data from input to a form modal
USING FORM & ACTION BUILDER
Hi i have a permission
tags input
and i also have action inside that input the open a modal and from the user can select the permision and the they will see it in tags input i can set the permission to the tags input from the modal but when i open the modal the permission are alway unchecked how can i set the permission form the tags input the the selected permission are checked
my code
2 replies
Filament Test Fails for Force Delete Action but Works in Browser
I'm testing a
Here’s my test code:
And here is the
it works in the browser. However, in the test, it appears that the model is still present in the database, causing
What could cause the action to work in the browser but fail during the test? How can I resolve this discrepancy?
ForceDeleteAction
for an organization in a Filament table builder Liveware component using Pest. The functionality works perfectly in the browser but fails during the test, with the error:Here’s my test code:
And here is the
ForceDeleteAction
implementation:it works in the browser. However, in the test, it appears that the model is still present in the database, causing
assertModelMissing
to fail.
Additional Details:
- The Organization
model uses soft deletes.
- The database has a deleted_at
column.
- The trashed()
state in the factory correctly sets the deleted_at
column.What could cause the action to work in the browser but fail during the test? How can I resolve this discrepancy?
5 replies
How to Structure Code for Filament Modules in Livewire?
I am using all Filament modules in Livewire directly, not the Panel Builder. My goal to make the main component cleaner and lighter by breaking down functionality into smaller parts. Here are the two approaches I am considering:
Approach 1: Using Traits
- Break down actions and forms into traits to keep the main Livewire component focused on its primary responsibilities.
- The traits encapsulate logic related to actions and forms for better code clarity.
File Structure: --- Approach 2: Using Classes - Encapsulate each action and bulk action into its own class for better organization.
- The classes are grouped logically in directories to separate concerns and keep the main component light.
File Structure: Which approach is more used in the filament Community
- The traits encapsulate logic related to actions and forms for better code clarity.
File Structure: --- Approach 2: Using Classes - Encapsulate each action and bulk action into its own class for better organization.
- The classes are grouped logically in directories to separate concerns and keep the main component light.
File Structure: Which approach is more used in the filament Community
5 replies
Fork the repo but when i installed filament from my forked repo i get a Error
Issue
https://github.com/filamentphp/filament/issues/14394
Fix Pull Request
https://github.com/filamentphp/filament/compare/3.x...sohailahmad07:filament:add_disable_grammarly
Hi to fix the above simple issue i fork the repo and fix it but before i make a pull request i want to test it locally so i installed a fresh laravel project and in my composer.json i add
but when run composer install i get the error
and i a positive i did not create this issue so i create a new branch for 3.x (default) and with out any change i push that branch and when i tried to installed form that brand i get the same error
2 replies