[Live-coding] Laravel Livewire: Parent-Child Form Example

[Live-coding] Laravel Livewire: Parent-Child Form Example

Laravel Daily

3 года назад

88,174 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Million Bits
Million Bits - 27.08.2023 06:04

HI, Awesome, But when I add new row then repeating data from previous child row how to prevent it ?

Ответить
Intrudo
Intrudo - 09.02.2023 06:05

But how about the validation? where should be the validation?

Ответить
Kristopher Jafeth
Kristopher Jafeth - 14.01.2023 21:22

how update records?

Ответить
Gaston Asecas
Gaston Asecas - 13.12.2022 08:28

Hello, my name is Gaston. I am from Argentina. I want to congratulate you because your way of speaking is so clear and I can understand everything you say and learn a lot. Thank you very much.

Ответить
Ahsan Khan
Ahsan Khan - 12.11.2022 06:11

@PovilasKorop I tried to follow the same process for <textarea>, but the weird thing is whenever I try to press add button, It adds empty space but doesn't show the <textarea>. When I perform an activity on other fields, it shows back. What could be the reason?

Ответить
Abdulaziz Redi
Abdulaziz Redi - 15.09.2022 08:11

Absolutely amazing video

Ответить
Mahmoud El Sherbeny
Mahmoud El Sherbeny - 31.08.2022 03:32

thank you, you are the best ❤

Ответить
Ali Idhrees
Ali Idhrees - 17.08.2022 19:39

How do I add a heading to product details form and have separate products for each heading??? Your content is already helping a lot. Thanks in advance

Ответить
Martin Sinansky
Martin Sinansky - 09.08.2022 22:21

I am starting with livewire now on a project and I need to implement a combination of parent-child functionality with a dependent dropdowns. Normaly, when there is a single component, I would track the list of values + the selected value. However,in my case I need to have a 2-level dependent dropdowns on each child separately. So if we continue with this example, each row should also have a dropdown for product category and the product dropdown should be dependent on the category selected. The category list can be populated once in teh parent, as it is going to be the same for all children, but the product list needs to refresh for each child separately on changing the category selection.

Anyone has any idea how to make such a combo work? I have tried nested components, but still something messes it up for me and I honestly, I am clueless on why...

Ответить
Suraj Paudel
Suraj Paudel - 10.06.2022 11:10

really useful course, one problem, is how to filter products that have already been selected by the user?

Ответить
Elias Zgheib
Elias Zgheib - 23.05.2022 22:37

please i need your help, l have installed livewire and try the example shown at livewire page (counter) but still have a main issue asking livewire.js not found, and index not found, i tried installing livewire on other pc and still having the same issue that keeps livewire not responding

Ответить
himak
himak - 08.05.2022 20:10

Where I can find multi validation rules of this example ?

Ответить
BORGY
BORGY - 05.05.2022 12:18

Got this error on Save, LOG.error: foreach() argument must be of type array|object, null given {"userId":1,"exception":{}}

Ответить
Amila Sandaruwan
Amila Sandaruwan - 25.04.2022 20:35

Thank you very much sir, Can you please do this video with parent-child fields validation part. It's really help

Ответить
AngelHdz
AngelHdz - 03.04.2022 05:10

can i use the $orderProducts variable to insert the data from the Livewire component?

Ответить
Patrick Aoun
Patrick Aoun - 24.03.2022 16:15

Thanks for this tutorial. What about adding images within this form, how do I manipulate them? Meaning, how can i access multiple images in livewire and store them in the DB?

Ответить
So Cool
So Cool - 14.03.2022 17:30

How do i update the field on livewire ?

Ответить
David Son
David Son - 08.03.2022 17:23

Hi Povilas, Thank you very much for your invaluable teaching. this is really helpful and I was looking for something like this.

Ответить
Thearong Phy
Thearong Phy - 24.02.2022 06:32

how to add select2 to select product i have problem with this one week ago sir pls help ?:(

Ответить
Hassan Raza
Hassan Raza - 09.02.2022 22:17

Will it not increase the server overhead?

Ответить
Raica Bogdan
Raica Bogdan - 24.01.2022 14:40

Will this not create more load on the server since it will make requests back and fort to the backend? With a small handful of users, I don't really see a problem, but if you have hundreds, I feel that this can really create a massive issue.

Ответить
Ali Motamedi
Ali Motamedi - 22.01.2022 16:11

thanks, very good course, but the problem is when we want to validate the input of list. how to do validation?

Ответить
Lone Runner
Lone Runner - 30.12.2021 12:10

Hi Sir, I need your help to fix my problem.

I modified your code by adding some fields.

I rename "order" table into "account" table and rename "product" table into "journal" table.
The new field "date" is adding into journal table and "credit" field & "debit" field in 'account table.

The question is, how to display date rows (months) as column?
The result I need is like :

Account | Januari | February | ..... etc
assets | (sum of credit ) | (sum of credit ) |
liabilities | (sum of credit ) | (sum of credit ) |
.... etc

This query is filter by date of range and sum group by month. Thanks

Ответить
Yuk Coding
Yuk Coding - 08.12.2021 08:29

I implemented this in my project but I want to add Select2 plugin to select input and with JavaScrip querySelectorAll only select the first element ..what the problem

Ответить
Redouane OUKACI
Redouane OUKACI - 24.11.2021 00:07

Hi. I use live search input instead of select html. But when i add for example 2 rows, when the searching start, the second row also do the same action. How to fix that. Thank you.

Ответить
PanZabi. com
PanZabi. com - 20.11.2021 12:10

Whit is the name of the tutorial playlist?

Ответить
Fady Elias
Fady Elias - 18.11.2021 21:19

Thanks very much for useful and big tutorial We need validations for this inputs

Ответить
Hr Alamin
Hr Alamin - 10.11.2021 05:45

Sir, How can we use select2 or It's alternative effectively in livewire without wire ignore.
Because, if we use wire ignore and make dynamic Select tag field, then select2 doesn’t work. How can we solve this? Please help.

Ответить
Dikrie A Hakim
Dikrie A Hakim - 11.10.2021 13:52

Very nice tutorial. Thanks. How would you pre-populate the products and quantities in the case of an edit controller form?

Ответить
Shenel Anuththara
Shenel Anuththara - 19.09.2021 12:58

Can we save images with this same way ?

Ответить
Thomas Omweri
Thomas Omweri - 06.09.2021 16:18

Excellent. With livewire more laravel backend developers will easily turn out full stack!

Ответить
Marcello Perri
Marcello Perri - 28.08.2021 14:37

This Livewire is a revolution, we can perform a dynamic form without javascript at all, thanks for the video, very useful, it would be great if you can show how the total amount of the cart changes based on the products that you dynamically select, is it possible to do something like that?

Ответить
Mohammed Shopan
Mohammed Shopan - 19.08.2021 23:28

I am new in livewire i use vue js before and i asking for design and ui in live wire can i found package do animation and ui component fast

Ответить
Eduard Espinoza
Eduard Espinoza - 09.08.2021 23:51

:) Qué buena información. Gracias!

Ответить
ARSHAD SAHJAVI
ARSHAD SAHJAVI - 29.07.2021 00:19

In this example, how can I make dynamically dependent dropdown.???

Ответить
TechFuture Code TV
TechFuture Code TV - 27.07.2021 14:35

This is magic. Very very interesting

Ответить
Cool Tech
Cool Tech - 27.07.2021 13:00

thanks for very usefull tutorial,

one question? how to validate the fields?

Ответить
Javier Hernando Eraso Leon
Javier Hernando Eraso Leon - 13.07.2021 01:43

Very useful video. Thanks Povilas. I wonder if there is some guide to make record edition, since I find confusing to retrieve and save the many-to-many data.

Ответить
Mahesh Maharjan
Mahesh Maharjan - 05.07.2021 17:44

How can we do same in select2. I have list of more than 50 items and I need the search option which only works for the 1st child. Remaining children donot have search option. Please help

Ответить
Ignatius N
Ignatius N - 29.06.2021 08:50

Hello Povilas, by the way what's the difference between for example $blog->author->name and $blog->author()->name. I find that each at times give different outcome (at some instance causing no results being returned)

Ответить
Abhijit Pal
Abhijit Pal - 09.06.2021 07:48

Nice video sir.
Sir how to show alert message before deleting product using livewire.

Ответить
BrokersADDA TV
BrokersADDA TV - 02.06.2021 12:41

Great video. I need a livewire example of a nested dropdown like COUNTRY and CITY. How can we do it using livewire. Should I learn livewire for Laravel projects or vuejs ?

Ответить
Raja Murugan Thirumaran
Raja Murugan Thirumaran - 28.05.2021 15:03

Hello Mr. Povilas Korop, Did you please upload a video for the same Parent-Child Form Example in the jetstream inertia.

Ответить
Lobo
Lobo - 26.05.2021 14:58

Very strong tools mixed with alpinejs and tailwindcss

Ответить
chaouki mannai
chaouki mannai - 22.05.2021 13:42

hello i keep getting post error at product.php
Route [orders.store] not defined
can help me fix that
and thx love your videos

Ответить
Aavin Seth
Aavin Seth - 19.05.2021 21:00

can you create an example on searching autosuggest show onfocus and hide onblur with livewire

Ответить
Briareos Lawrence
Briareos Lawrence - 05.05.2021 10:40

Using livewire with jquery? Do not embarrass yourself...

Ответить
Bawar Abid
Bawar Abid - 02.05.2021 23:48

Thank You. However, what if we have the price in another input "not in the options". how to implement that

Ответить
Omar Treviño
Omar Treviño - 25.04.2021 06:53

I´am a user of QuickAdminPanel and I just trying to change to Livewire, Thank you for this video, Thank very much Mr. Povilas. I send you my greetings from México city.

Ответить