Askancy
How can I manipulate the response of a post create
I was looking at the demo on github because I'm confused anyway about how to act
https://github.com/filamentphp/demo/blob/f2a27fd03ba8a8d2c2b1287d6b3949a456e47be7/app/Filament/Resources/Shop/OrderResource/Pages/CreateOrder.php#L21
could you give me some examples?
8 replies
Create select with pivot relationship
I'm converting an existing project from 2008, which has evolved over the years, so I can't use all the Laravel conventions...
I don't think one is obliged to follow these conventions.... it's recommend but not obliged...
23 replies
Create select with pivot relationship
Now in the edit page the select remains empty, but if I search for a Franchise and save, it correctly saves the query in the database:
However, how come it saves correctly in the table but the select when viewing the edit page remains empty?
->select('franchise.id AS franchise_id')
I had to add it because I was getting the error:
>SQLSTATE[23000]: Integrity constraint violation: 1052 Column 'id' in where clause is ambiguous23 replies