David | Fortune Validator
David | Fortune Validator
FFilament
Created by Trauma Zombie on 7/9/2024 in #❓┊help
How to close notification slide-over on action
I had the same issue when using the global search. Page redirects but popup stays. I disabled spa in the end
21 replies
FFilament
Created by David | Fortune Validator on 4/9/2025 in #❓┊help
getTable() on null on Pest Test
Thank you for that. I have a similar setup. I did start with seeding which was a hassle to setup anyway with refresh database trait. But I switched to creating the explicit data per test which I prefer now as well. Appreciate the tips. Tests are a whole new world. It is quite addictive seeing all that green passes though haha
13 replies
FFilament
Created by David | Fortune Validator on 4/9/2025 in #❓┊help
getTable() on null on Pest Test
So I figured out my issues. 1) needed a user as you said BUT 2) my app service provider defines the gates and each time RefeeshDatabase was run it would loose those each test creates a user with a new permission. Took me an age to figure it out but now I just run the gates again after every user is created per test and it’s okay. Maybe this would be easier with spaties permission package I’m not sure. I just built a light weight one myself.
13 replies
FFilament
Created by David | Fortune Validator on 4/9/2025 in #❓┊help
getTable() on null on Pest Test
I’ll give this a go and report back. Thanks for the tip to check. I thought I had a global user logged in but I could be wrong. Very new to tests. Out of interest, is it advised to have a testing database rather than my local dev one ? And use the refresh database trait. ? Many thanks
13 replies
FFilament
Created by David | Fortune Validator on 4/9/2025 in #❓┊help
getTable() on null on Pest Test
I have nothing fancy going on within my table. The factory works and tested looking at table normally. Just the tests not working
13 replies
FFilament
Created by David | Fortune Validator on 4/9/2025 in #❓┊help
getTable() on null on Pest Test
Almost like the data is not being passed into the table for the test
13 replies
FFilament
Created by David | Fortune Validator on 4/9/2025 in #❓┊help
getTable() on null on Pest Test
Yes it does. It just seems when I need to test the data on the table I get problems
13 replies
FFilament
Created by David | Fortune Validator on 4/9/2025 in #❓┊help
getTable() on null on Pest Test
it seems any table test fails for some reason
13 replies
FFilament
Created by mohdaftab on 10/20/2024 in #❓┊help
Sushi to dynamically load data from API using search keyword
I’ll try this. Thank you
8 replies
FFilament
Created by mohdaftab on 10/20/2024 in #❓┊help
Sushi to dynamically load data from API using search keyword
did you have any luck with this?
8 replies
FFilament
Created by David | Fortune Validator on 2/3/2025 in #❓┊help
Skip View Step
thank you
15 replies
FFilament
Created by David | Fortune Validator on 2/3/2025 in #❓┊help
Skip View Step
sorry to hassle you again but I wanted your advice if I may:
->modalContent(fn (RelationManager $livewire) => new HtmlString(
Blade::render('@livewire("estimates.actions.pdq.import-price", ["estimate" => $estimate])', [
'estimate' => $livewire->getOwnerRecord()
])
))
->modalContent(fn (RelationManager $livewire) => new HtmlString(
Blade::render('@livewire("estimates.actions.pdq.import-price", ["estimate" => $estimate])', [
'estimate' => $livewire->getOwnerRecord()
])
))
I want to pass some data to the mount of the livewire component. would the above be the right way. It does work but again I want to make sure im doing things the right way
15 replies
FFilament
Created by David | Fortune Validator on 2/3/2025 in #❓┊help
Skip View Step
actually slightly nicer ways seems to have #[Lazy(isolate: true)] on the livewire component itself
15 replies
FFilament
Created by David | Fortune Validator on 2/3/2025 in #❓┊help
Skip View Step
on a random pointer. I did notice the use of =lazy="on_load" is needed on the component call, otherwise the first click on the modal is ignored for some reason
15 replies
FFilament
Created by David | Fortune Validator on 2/3/2025 in #❓┊help
Skip View Step
no problem. Much appreciated
15 replies
FFilament
Created by David | Fortune Validator on 2/3/2025 in #❓┊help
Skip View Step
HtmlString
15 replies
FFilament
Created by David | Fortune Validator on 2/3/2025 in #❓┊help
Skip View Step
looks like it needed :
->modalContent(fn () => new HtmlString(Blade::render('@livewire("budget.list-post-tax-adjustements")')))
->modalContent(fn () => new HtmlString(Blade::render('@livewire("budget.list-post-tax-adjustements")')))
15 replies
FFilament
Created by David | Fortune Validator on 2/3/2025 in #❓┊help
Skip View Step
hmm, im getting Filament\Actions\MountableAction::getModalContent(): Return value must be of type Illuminate\Contracts\View\View|Illuminate\Contracts\Support\Htmlable|null, string returned on your Blade version
15 replies
FFilament
Created by David | Fortune Validator on 2/3/2025 in #❓┊help
Skip View Step
Thank you,. I just came across this as well:

->modalContent(fn()=> Livewire::component('budget.net-adjustments'))
or
->modalContent(fn()=> Livewire::mount('budget.net-adjustments'))

->modalContent(fn()=> Livewire::component('budget.net-adjustments'))
or
->modalContent(fn()=> Livewire::mount('budget.net-adjustments'))
Do you think there is a best way of doing this out of the three options?
15 replies
FFilament
Created by Oddman on 1/7/2025 in #❓┊help
Man... Filament is so damn slow :(
Not sure if it will affect things or not but any chrome extensions causing issues ? ( assuming using chrome)
30 replies