Babiute🍎🐍
typed property $table must not be accessed before inicialization
According to Dan Harrin https://discord.com/channels/883083792112300104/956270111176679516/1191874067788202034, maybe there is something wrong in my code. To avoid flooding offtopic channel, I share the code here to ask for help and see if it's a bug or not. If so,I will open the issue on github. Anyway thanks.
30 replies
Create multiple records at once (pseudo code)
I have a form with 3 fields.
1 field is inside a repeater and the other 2 are not, as they are common to all records.
If the user enters 10 repeaters, 10 records will be persisted.
What I did to make it work is customize the creation process inside my create page class:
My question is: Is this the way to go or does this code smell bad?
6 replies
How to get name instead of id in a select with relationship
Scenario: Select dependent that should be disabled based on the name of the other.
`
Is it possible to retrieve the name chosen in the first select component instead of the ID?
I know I can do get the record on DB based on Id and then get the namesomething like that based on id, but at first it seems like this information is already available on the first select, so I want to save this query to retrieve the name.
7 replies
Show parents' names in a form, preferably as a link.
Hello guys.
I want to display data about the parent models in a form. Something like his name as a url that, if the user wants, can go to the parent resource.
In this case, the viewing resource is deply nested (5 levels) and I would like to provide quick access to parent resources (user convenience).
Any directions you can point me to?
3 replies
Demo App Create and Create Another not working?
I have a modal for creating a resource but when clicking on "create and create another" the modal closes instead of remaining open for creating the next record.
I checked the Demo App to find out and found the following:
In Categories > New Category, the modal also closes when clicking "create and create another".
In Posts > Manage Comments > New Comment the modal remains open, as expected, allowing the creation of another record by clicking on "create and create another".
Looking at the source code, I couldn't tell the difference between one and the other.
Any tips? I think the ideal behavior would be the one seen in "New Comment"
6 replies
Widget on own filament page
Hello Folks!
There is a specific widget that I would like to have displayed specifically on its own filament page.
I add it to the page and it is displayed correctly, but I am unable to stop it from being displayed in the Admin Panel. Is there any way I can do this or am I confusing the concept of things here?
2 replies
How to perform tests with backed enums
1. $casts is set
2. The enum, in this case, does not implement hasLabel.
3. The test
4. if I use assertTableColumnStateSet, the errors are exactly the same.
Does anyone know what I could be doing wrong?
5 replies
Customize table header appearance when unordered.
Hello Masters!
Currently the sorting in tables uses a certain icon to indicate asc sorting and another for desc.
When there is no active sorting, the same desc sort icon is used, but with a opaque color.
My question: is it possible to customize the 'unordered' state, either by using a third icon or even hiding it? Maybe the hide option isn't the best, but I'm just exploring the options.
3 replies