Lara Zeus
how to expand section when there is some validation error in the child component
I want to implement this feature in my plugin accordion
filament components has this feature when there is some errors in inputs inside the collapsed section or inactive tab they will be activated (the short video)
how I can implement that in my plugin!
or where I can find the source code for this part
dont know what to call it or what to search for,
checked the section.blade, but nothing clear to me
5 replies
[phpStan] Illuminate\Database\Eloquent\Model::$id.
getting the error on phpstan
level 2 only which drive me crazy!!!!
the code is from
and I cant change the signiter of the function
and adding
Company|Model
wont help!
should phpstan with larastan recognize the default laravel model attributes like id?
7 replies
split json between text field and hint action
this is a sign that I should go to sleep... 🙂
I have a column 'link' cast to array
it's look like this
so my Input is:
the result after saving to db is
{"url":"https:\/\/11111"}
the options are never saved to db since they not exist in the main component
is there a solution around this?! or better idea5 replies
is it possible to have a Repeater in action form in a loop
I should go to sleep but I wont till resolve this 😅
in a lw component with loops for items
and each item with an action :
in that action I have a form with repeater
it looks like any sup request will lose all the data in
$arguments
20 replies
custom page action not opening
I have a custom page for a resource
trying to add an action at the end of the form
adding it to
getHeaderActions
work fine but not as asepreate action
even adding <x-filament-actions::modals />
no effect
not sure what i am missing!
my Page:
view:
24 replies
wizard is not reactive
trying to add steps to a wizard when another component is updated
full code:
https://gist.github.com/atmonshi/1f9e2dc7e78a57423a0144979a3f9ba2
the step appears but the next button is not showing.
7 replies
repeater - anonymous action - fillForm
I have a repeater with anonymous action to open a modal inside a resource as:
and I want to get the data of the repeater item
tried Get $get, $state, $data, $record
but I am always getting only the first item in the Repeater when trying to access the record
not sure what to inject there in
fillForm
BTW the same code works just fine when not inside a repeater!
any idea?7 replies
get breadcrumbs in a render hook
how I can access breadcrumbs in a render hook
I want to move them to the topbar
and my view:
found this but where are the eggs 😅
$breadcrumbs
coming from!?
https://discord.com/channels/883083792112300104/883084832387760148/114106006143998778211 replies
using AsEnumArrayObject with enums
when I try to use
AsEnumArrayObject
in casting
in my model:
in the table:
Tables\Columns\TextColumn::make('permissions')
I get
is it even possible to use AsEnumArrayObject
with enums
in filament? couldent see anything here
https://filamentphp.com/docs/3.x/support/enums3 replies
unexpected behavior in Repeater when contain a Toggle
filament v3.0.7
in a panel, a resource has a repeater, including text input and a toggle!
there is unexpected behavior when adding or removing items
some time won't delete, or delete with the next action (request), and when adding an item it will add two items or more.
but if I disable the toggle or replace it with any other component the issue is gone!!
(my actual repeater has so many fields with different types but I am testing in a fresh app)
Initially I thought it's a LW queuing the requests or something like that, but when I removed the Toggle all good?! which now makes me crazier!!
I let you watch the two videos...
I have a repo ready if you want to test
https://github.com/lara-zeus/test-fila-three/pull/3
but here is the simple code:
13 replies
[plugins-dev] test: isDeferred does not exist
any idea why I am getting
Method Filament\Panel::isDeferred does not exist.
when testing a plugin!
I think I am missing a provider or something?!
the test:
result:
the same testing was green with v2.
full changes:
https://github.com/lara-zeus/bolt/pull/1066 replies
adding trait Translatable will make all fields Translatable
@Dan Harrin
sorry to @ you 😅 continuing the discussion here I think it's easier and maybe others can help! the issue root: https://github.com/filamentphp/filament/issues/7156 long story short: when using the trait
sorry to @ you 😅 continuing the discussion here I think it's easier and maybe others can help! the issue root: https://github.com/filamentphp/filament/issues/7156 long story short: when using the trait
Translatable
all none translateable attributes won't be saved.
I found that there is two loops first one for $this->getTranslatableLocales()
and the inside it another foreach getTranslatableAttributes
it only saves one language, and on the next, it will revert to the original data,
should it be saving only one lang, the selected one?
attached a dump file79 replies