Комментарии:
What if i want to edit these records? Is it possible? Should i use an id to directly edit those records?
ОтветитьWhat if the extra field is another relation?? I mean think about this, in a project any user can be assigned to multiple projects, and in every project there are multiple users, but each user might have a different role in every project, so the pivot table would be: project_id | user_id | role_id
ОтветитьWhat about the weight data per days? Should I create another table or just use json column?
Ответитьdamn man u really is the goat, thank u so much
ОтветитьHi!!!! this video safe my life :D , I finally understand about custom fields on pivots table, but i have a question how i can save custom values of pivot table from json-api endpoint? do you have any example for this kind of case ?
ОтветитьHello can you make a grocery list to containt the ingredients pf the recipe selected please
ОтветитьThank you! It really helped me!
ОтветитьThis was a life safer for a critical bug at my company. Thanks man
ОтветитьHow to use setter in pivot model?
ОтветитьHello sir nice video kindly do a video on how you store ingredients and recipe_id on the pivot table
Ответитьthis is kind of tricky to do in livewire, for create/edit actions, maybe an idea for a new video?
ОтветитьThanks a lot!
ОтветитьThanks a lot!
Ответитьhow to update the ingredient value in edit page?
ОтветитьThank you so much! After I understood how sync works I write my code for processing arrays and it worked
ОтветитьI was trying to do another project but this time: Laravel API and Vue SPA.
I followed the steps on the video, but couldn't find a way to insert the "quantity" on the pivot table via Insomnia.
PS: the pivot has 3 fields: order_id, product_id, quantity.
I have a pivot table: negotiation_user with
negotiation_id and user_id
Is it possible to add project_id between them and add via attach()?
PS: project_id is a third foreign key
this solved my issue thank you so much
Ответитьif amount is integer, what is the query to sum total amount in soup?
ОтветитьThanks for the amazing video Mr povilas. Just noticed you using In array and old value In case of validation error. How does it work on select 2 drop down ? Could you please send the full snippet for the select 2 for ingredients dropdown?
Ответить