#14 Make E-com in Laravel 7 | Admin Details (II) | Upload Admin Image | Install Intervention Package

Publicado el: 01 enero 1970
en el canal de: Stack Developers
3,671
65

In Part-14 of Advance E-com Series, we will continue working on updating admin details and this time we will validate and upload admin image.

For uploading images, we will install intervention package that will help us to resize images as well.

1) Install Intervention Package :-
Simply run below composer command to install Intervention Package :-
composer require intervention/image

2) Update update_admin_details.blade.php file :-
Add enctype="multipart/form-data" in update admin details form to accept files and we will also add condition to show admin image and add another hidden field for current admin image.

3) Update updateAdminDetails function :-
Now we will update updateAdminDetails function to add validation for image and will add upload image script and finally save the image name in admins table as well.

We will create admin_photos folder under admin_images folder where we will store all admin images.

4) Update admin_sidebar.blade.php file :-
Now we will update admin sidebar with admin image who logged in. If no admin image exists then we will show some dummy image.

Thanks for watching :)


En esta página del sitio puede ver el video en línea #14 Make E-com in Laravel 7 | Admin Details (II) | Upload Admin Image | Install Intervention Package de Duración hora minuto segunda en buena calidad , que subió el usuario Stack Developers 01 enero 1970, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 3,671 veces y le gustó 65 a los espectadores. Disfruta viendo!