Laravel 9 Ecom - Part 10: Add Product w/ multiple Images using relationship & validation in laravel

preview_player
Показать описание
In this video, I have taught how to add product with multiple images using relationship and form request validation in laravel 9.
How to insert data into database with multiple image upload using hasMany relationship and form request validation in laravel 9.


Part 11: Product read, edit update and delete with images

#insert_data_with_multiple_image_upload_in_laravel_9

Рекомендации по теме
Комментарии
Автор

my image cannot be stored into product_images table

solve: forgot to add [ ] in name="image" to name="image[]"

yasyaindra
Автор

Fantastic. Plz complete it until details, cart, payment etc.

mahbubrahman
Автор

Thank you for this wonderful tutorial good work, but I got question why you are not using the name() method in the web.php file to call route() method in the blade views instead of using url() and writing the full url, I think this is better than using url() and writing the prefix with the request url everytime.

amrashrafserageldin
Автор

Friend, you can store them in array instead of making it separate, your database will crash if you do that for a very long time. This is just my idea, and I think you won't grt me wrong. Thank you

joshdevofficial
Автор

Hi sir I got an error in laravel
Value in the SESSION gets stored if I send it with POSTMAN and i can get the value in different function.
But if I do same with AXIOS, value will get stored only till that called function ends .After if I want to access that value with different function it will return null.
Earlier even with POSTMAN value was not getting stored.
After adding it works fine with POSTMAN and not with AXIOS

amithm
Автор

Sir plz make for shirt size, coupons and tracking section in that ecommer website
Sir you are super and your video also I have learn lot about lot about that video
Please make that three section in your website
It will be help me for
Answer create the API section also

shivendratripathi
Автор

What's the benefit of relationship with category? Can we insert products data without category relation?

s.h.i.e.l.d..
Автор

very good tutorial, thank you very much. still you need to improve a lot to reach enterprise level...

ellolithuania
Автор

sir plz make with attributes like color and size.

brothersthought
Автор

sir, i got the error . The description field is required even I put some data

glyzamariearcibal
Автор

how do you have category options at 25:27?

Muli
Автор

error "Call to a member function create() on null" function create not found

quanghuybestk
Автор

when i try to compact my data from brand or category then it shows Undefined variable $brand error plz help sir
I didn't get any data in tabs

usamaaleem
Автор

sir i get the error sir please help me : The POST method is not supported for route admin/products. Supported methods: GET, HEAD.

janstipenroymansen
Автор

I got an error say the brand field is required, nvm i have a typo in select name :D

alfathizha
Автор

Where did you declare the $file variable?

jelarrycadutdut