Zakhaev
Accessing accessor trough a relationship
Hi, i got a problem and i couldnt find the answer on the net.
in my Invoice resource i have a table column like this
in the invoice model i have a relationship like this
And then in my LineItem model i have this
the additionalitemproperties is a relationship to a model that has many records beloning to one lineitem
i cant figure it out thanks for the help
12 replies
problem when editing or viewing deleted records
I have just a resource with records. But when i delete one and try to edit or view it i get a 404. What can i do to solve this problem.
Im using softdeletes to delete a record
The code is just a normal resource nothing special or extra
12 replies
Relation with where id check doesnt work like i want it
I have this piece of code that allows searching all the assets
but now i want them filtered on a organisation_id
this is what i did in the model.
but when i check it with Telescope i see that the organisation_id check is never performed. Anyone tips for me ?
4 replies
AfterStateUpdate looks like it isnt working
As you can see in the example above. I have a chosen asset select component. With values of assets. That is working fine. But when some value is selected i want to change other fields according to that.
I try to change the asset_id field below but nothing seems to be working. Can anyone help me with this?
7 replies