Laravel 5.8 Tutorial From Scratch - e39 - Image Upload - Part 1

preview_player
Показать описание
Let's work together as we add the ability for a customer to have a profile image. We will see what we are building first, and then starting from scratch step by step. We will change our form, upload the image and make the necessary changes to our database.

DigitalOcean Referral

Resources
Course Source Code

About This Course

Ready to get started on your path to Laravel Artisan? In this series, we are breaking down all of the basics of Laravel to get you comfortable using the world's most popular PHP framework. Let's get started!
Рекомендации по теме
Комментарии
Автор

You can just pass 'nullable' or combine it with 'sometimes' against the image in validate array instead of required. This way you can skip the excess code of tap function.

NitishKumarPatra
Автор

Step by step, broken down to micro-details as usual, I think this is the best file uploading tutorial video (Laravel) on YT. Beautiful. Thank you so very much !!

shumit
Автор

Storage folder *Mind Blown* Thanks Coder's Tape

wellingtonchanda
Автор

Your videos are always easy and simple to follow i really can't thank you enough for these awesome tutorials, thanks.

baderelhayah
Автор

🇩🇰🥳As always.... Best video ever for image uploading for Laravel in YouTube. 👏🏼👏🏼👏🏼 Even paid courses can not match your way to explain things. Keep up the good work 🙏⭐️🇩🇰

SajidLatifDK
Автор

hey great as always but can you please make some episodes and focus on some tricky thing like the very first episodes of this series for example like making elequent and queries optimized or best practice of getting many to many relationship in view i mean optimized way and for this episode specially, what if we wanna implement from 1 to 10 images for user based on user wish if he wanna upload or not what would be the case then . . . and in general some sort of mistakes that beginners always make and tricks from real world projects that make coding easy for them :) thanks for great share again .

farshadbadiee
Автор

Thanks a lot. Will you have plans to create a good comments system or use some way with repository?

olexandrplakhotniuk
Автор

For some reason adding the 'image' to my create migration and doing the whole fresh --seed thing didn't create a new column in my db. The image string was inserted into 'created_at' column instead. I had to create a new migration to add that column on its own.

Now after the video is done everything works except for the edit of the customers with the error "The PATCH method is not supported for this route. Supported methods: GET, HEAD." and currently I've no idea why. At 2:48 I can almost see that you removed the @method('PATCH') line from that page for some reason? Is that related?
EDIT: Fixed the edit part, for whatever reason my route in the edit.blade.php was customers.edit instead of customers.update, no idea when and how that happened. Maybe when I was fixing the routes in all the actions I made a mistake here.

uros.u.novakovic
Автор

When i run the php artisan storage:link this is what i get
The system cannot find the path specified.
The [public/storage] directory has been linked.
It does not create any folder in the public directory. i have been stuck here for hours. i have googled and tried a lot but i couldn't find any solution. do you have any idea why this happens?

ahmedmaldhanali
Автор

I'm new to laravel and getting started with 5.8 and just came across your channel and I'm learning a lot just from a few videos! In this video your process for uploading an image will it work for a folder of multiple images for a shopping cart? I'm using my own images for my own website. Looking forward to watching your whole series.

exoticwoodpen
Автор

At 15:00 min into video you mention a directory named uploads. storage/app/public/uploads. In my storage/app/public all I have is gitnore. Did I miss adding this directory?

kennethsmith
Автор

Sorry, I am using laravel 8 but when try to upload the file in store, does not show anything. Can I know why

michaelchiayin
Автор

Sir, I have a question, how to prevent from uploading a file if the file Extention is changed. from .exe to .jpeg

kumarabhishek
Автор

My database gets a path, not a file name. What do I do?

BEEP
Автор

it works well at localhost, but why it does work at server? Thanks.

khakha
Автор

Hello ...how to use softdelete with resource controller..or resource working fine with normal route but when I used resource controller then it's not you can please tell....

gsrcreations
Автор

i posted this question separated because it became to my mind just now what if we wanna attach multiple images ?? should we use multiple column for each image?? or store them and separate them some how with a, or something ??

farshadbadiee
Автор

I have a question If I want to implement user password update in hashed format like a new user registers, how can I implement ?

DeepakVashistha
Автор

The system cannot find the file specified.
The [public/storage] directory has been linked.
#imgetting this error

nabingiri
Автор

please help !
i make laravel project for learning how to add some posts with image on locoalhost work is fine when i share on free hosting i get error with validation input image "the field is required" and gonna to delete the validation rule and i get another error "the file is not exits or not readable".
please how to fix that !

haythammostapha