Babiute🍎🐍
typed property $table must not be accessed before inicialization
I tried it previously, but for some reason that i really dont remember, it didn't work as expected.
I will try this approach again.
Thank you again very much for your kindness.
30 replies
typed property $table must not be accessed before inicialization
https://gist.github.com/fcno/b397d69ee04f513e8e36dd18ebf39fe6
the related livewire view component
30 replies
typed property $table must not be accessed before inicialization
Hello man 🙂
A few days ago I decided to translate a code into English. Then the guy who came to offer help threw a bunch of sh** at me, because I made a typo in the name of a variable or something like that i dont remember anymore.
I told him that I had translated the code to make it easier to helpers.
Then he said to me: Don't translate. Post your code as it is.
Note: regarding coding directly in English, I am not authorized.
But yes, I can translate the code without any problems, but for the case in question, I think it will be irrelevant.
30 replies
Create multiple records at once (pseudo code)
Hey @awcodes Thx for the answer.
It is not a custom page. It's a CreateResouce page, but with some customization (meybe would be better to do it in a custom page)?
The business rule is: The person can make a Request (this is the model) for a single item.
To make life easier for the user, I was asked to create a page where the user could indicate the different items and create 1 request for each item (hence the repeater).
There are a few other fields that will be common (for example, the destination and a description). These are handled outside the repeater and used to create each Request.
6 replies
How to get name instead of id in a select with relationship
Oh..
I think I made a mistake in the question and wrote too little or the initial question was poorly formulated.
the 2nd select will only be enabled if the name of the 1st is "X".. any other selected option must keep the 2nd select disabled. However, the 2nd select options do not use the key/name from the 1st to recover the data in the DB.
So, if I set the 'id' of the 2nd dropdown from the 1st using a set, I don't think it would help and I need the name select on the 1st.
7 replies