SashaFletcher
Indirect modification of overloaded element of Illuminate\Support\Collection has no effect.
I am currently working on a bug where clicking on the 'save and new' button inside a 'create a new room' form, the user receives the following error:
"Indirect modification of overloaded element of Illuminate\Support\Collection has no effect”. I believe this is due to filament trying to modify a collection directly while it’s in a state that doesn't allow modification."
This looks like it is due to filament trying to modify a collection directly while it’s in a state that doesn't allow modification.
I have so far attempted to:
1. Use the map() method to create a new collection and apply the changes.
2. Use the transform() method to Modify the data directly
3. Use the get() and set() methods
4. Modifying the Data Before my each() loop Using map()
5.Used temporary array
All attempts have resulted in the above error.
here is my function:
1 replies