Загрузка...

Laravel 9 Tutorial #50 | Multi Vendor E-commerce | Images Module (II) | Add / View / Delete Images

In Part-50 of the Laravel 9 Tutorial to create a Multi-Vendor E-commerce Website in Laravel, we will continue working on the Products Images module.

In this video, we will add multiple images and will show them. Also, we will work on delete/disable functionality.

1) Update addImages function :-
We will update addImages function to upload single or multiple alternate product images after resize.

We will save product images in products_images table and upload into small/medium and large folders located at /public/images/product_images/

Now check in video; we can able to upload multiple images of the product.

Now we will work on active/inactive functionality for the product image.

2) Update add_images.blade.php file :-
Update add_images.blade.php file to show Active/Inactive and Delete Links with their respective classes and id's.

3) Update admin_script.js file :-
Now update admin_script.js file to add jquery click function with updateImageStatus class for updating image status.

4) Create Route :-
Now create POST route for updating image status in web.php file like below :-
Route::post('update-image-status','ProductsController@updateImageStatus');

5) Create updateImageStatus function :-
Now create updateImageStatus function to update status for the image from Active to Inactive or Inactive to Active.

Now check in video; we can able to update image status of the product.

Now we will work on delete functionality for the product image.

6) Create Route :-
Now create GET route for deleting product image in web.php file like below :-
Route::get('delete-image/{id?}','ProductsController@deleteImage');

7) Create deleteImage function :-
Create deleteImage function to delete the product image from products_images table as well as small/medium and large folders.

From next video, we will start working on front end and will download HTML template for our Multi Vendor E-commerce website.

►Laravel 9 Tutorial (Create Multi-Vendor E-commerce Website) - https://www.youtube.com/playlist?list=PLLUtELdNs2ZYTlQ97V1Tl8mirS3qXHNFZ

►Get Ready for Laravel 9 - https://www.youtube.com/playlist?list=PLLUtELdNs2ZYVb9lco6OnloSFyBLZU3tz

►Click here to subscribe for Laravel & other updates - https://www.youtube.com/stackdevelopers

Popular Stack Developers Series that can help you:-

►Laravel Tutorial for Beginners - https://www.youtube.com/playlist?list=PLLUtELdNs2ZaHaFmydqjcQ-YyeQ19Cd6u

►GIT Tutorial for Beginners - https://www.youtube.com/playlist?list=PLLUtELdNs2ZZVQ-dLOMFWvmCCduzJ8c6R

►Laravel API Tutorial - https://www.youtube.com/playlist?list=PLLUtELdNs2ZbcCsd4yAAiBU2L3ROREk8P

►Laravel Interview Questions - https://www.youtube.com/playlist?list=PLLUtELdNs2ZbzB_1Jdp_yFcORwOfWP8RU

►jQuery Tutorial - https://www.youtube.com/playlist?list=PLLUtELdNs2ZbMYoUA46GIonOH29KcjtxA

►Laravel Basic E-commerce Series - https://www.youtube.com/playlist?list=PLLUtELdNs2ZY5drPxIWzpq5crhantlzp7

►Laravel Dating Series - https://www.youtube.com/playlist?list=PLLUtELdNs2ZZrPUnxjlomErJfNvkyS6Hf

►Join this channel to get the complete source code of all series:
https://www.youtube.com/channel/UCExO2i-tLU1NyVZD6zOJQlw/join

Follow Stack Developers on Social Media to get updates and resolve your queries
►Like Facebook Page to get updates - http://facebook.com/stackdevelopers2/
►Join Facebook Group to resolve your queries - http://facebook.com/groups/stackdevelopers
►Follow on Instagram - https://www.instagram.com/stackdevelopers2/
►Follow on GitHub - https://github.com/stackdevelopers

#laravel9 #laravel9tutorial #laravel

Видео Laravel 9 Tutorial #50 | Multi Vendor E-commerce | Images Module (II) | Add / View / Delete Images канала Stack Developers
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять