Robin
text column parses large number as float
Is there any reason why a large number (for axample
3153414733313030323138383038
gets seen as a large number like 3.153414733313E+27
instead of just a string when using textColumn? When I add in my DB an A in front of the number it works just fine?2 replies
Relationmanager update rooted relations
Hello,
I'm trying to figure out how to save related attributes in a relation manager.
In first instance, I had to write a new table query, because the one given by Filament by default doesn't give me the correct items. The function looks like this;
Now, I get the correct data, but when I try to do things like this:
I need to set the
formatStateUsing
, else it doesn't give any kind of values. When saving, I get nothing but exceptions when trying to save and the table it tries to save is also wrong. How can I resolve this issue?2 replies
Livewire/filament bug?
I all of a sudden encounter;
Livewire\Exceptions\CorruptComponentPayloadException POST /livewire/message/app.filament.resources.vending-machine-resource.pages.view-vending-machine
Livewire encountered corrupt data when trying to hydrate the [app.filament.resources.vending-machine-resource.pages.view-vending-machine] component. Ensure that the [name, id, data] of the Livewire component wasn't tampered with between requests.
When opening an action modal. I didn't update anything on the page. I'm on the latest version of filament v2.
8 replies
Fill a selectbox it's option on edit when loaded from relationmanagers
I'm trying to get a relation manager to fill a selectbox that is a couple of relations "away" from the record.
This is what I currently have;
Now the error I got is
{closure}(): Argument #1 ($record) must be of type App\Models\VendingMachineSlot, null given
(default item in the above code)
What I need it the selectbox to be filled (and show the item selected) that is found in $record->sellingPointProduct->product->id
in where $record
should be the "edit" model for the selected relation manager object.
Anyone an idea on what and how to do this? Thanks in advance! ❤️3 replies
Notifications reduction of amount of showed notifications
Is it possible to (simply) reduce the amount of showed notifications in the sidebar? I'd like to only show the unread notifications or the notifications that are seen but then a cutoff in creation age of like 1 week or so. Is this possible and how?
17 replies
Morphed table not filling in form
I don't seem to be able to fill the value of a morphed column in the formview.
I have the following relation;
When I try to access this inside a form, it never gets filled with a value. I try to access ti this way;
Then the input field never gets it's value. However saving works (due to that after state updated callback).
In the table view it works just fine;
What am I missing here?
8 replies
Mutate relation data before save
I'm trying to mutate my data of a relationmanager before I save the records (attach).
The attach should get an extra parameter of the 'parent' in the relation that has some data, so I can save/mutate the data. It should also hook into another function so that I can update other data. For example;
In the relation manager I have this;
I don't see any DD being triggered here. I want, when the user presses attach, that there is data being added to the attaching object. Plus that there is another function that is being called to "sync" other data. Any ideas?
7 replies