Тёмный

Image Upload & Update Profile | Laravel 10 Tutorial #27 

Yelo Code
Подписаться 14 тыс.
Просмотров 13 тыс.
50% 1

Laravel 10 route grouping Tutorial
On this episode we will build our update profile page logic and also implement image uploads for our user profile picture.
Github Link:
github.com/yelocode/bootstrap...
Playlist of Laravel 10 Tutorial Course :
• Laravel 10 Beginners C...
What is Laravel :
Laravel is a free and open-source PHP web framework, created by Taylor Otwell and intended for the development of web applications following the model-view-controller architectural pattern and based on Symfony.
en.wikipedia.org/wiki/Laravel
If you're looking to learn how to authenticate a user using Laravel 10, then this is the video for you! In this tutorial, In this tutorial, we'll create a simple registration form that users will be able to submit.
If you have any questions or problems please leave a comment.
Laravel Blade
Laravel crash course
Laravel Database and crud tutorial
Laravel Login and Authentication
Laravel registration

Опубликовано:

 

2 авг 2023

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 24   
@Nour-AldeenQashoum
@Nour-AldeenQashoum 2 месяца назад
Thanks bro!, That was massive !! :D
@andrey8663
@andrey8663 8 месяцев назад
Thank you for this video. Very helped
@yelocode
@yelocode 8 месяцев назад
Glad to hear it!
@joaopauloabdalab
@joaopauloabdalab 7 месяцев назад
I've got really confused in the HTML part, I spended 30min just trying to find my self on it. I think it would be better if you told the exactly lines you are working on, to keep it more clearer. Your videos are my first time learning Laravel, they are great, keep doing it!
@Vichion
@Vichion 7 месяцев назад
"Pro tip" if you wanna validate your username as unique but still allow this type of mass-update you may use this as your name validation: 'name' => 'required|min:3|max:40|unique:users,name,' . $user->id,
@kouzokiodin3623
@kouzokiodin3623 27 дней назад
Thank you so much, just an issue when i click edite profile i can edite the iseas as well
@HamadAbdulla_7
@HamadAbdulla_7 11 месяцев назад
thank you
@yelocode
@yelocode 11 месяцев назад
Thank you for watching and the support.
@user-ql3sm4uq8b
@user-ql3sm4uq8b 4 месяца назад
Whenever you click on any idea cards username or it will redirect to the logged in user and not the creator of the idea
@howasyourday3351
@howasyourday3351 20 дней назад
hello friend, I have a website. users can send images from the dashboard of the laravel application(breeze), then the admin (Filament) can edit them. but the image only appears in the table, when I edit the image it does not appear. does anyone have a solution here? thanks, god bless🙏
@PedroCoelho98
@PedroCoelho98 11 месяцев назад
Does the image store method generate unique filenames? Or can we replace files by accident?
@yelocode
@yelocode 11 месяцев назад
Very unlikely to replace images on small projects .It does generate unique names but the hashing algorithm it uses appears to be Str::random(40) which uses PHP random_bytes under the hood. Not sure what the odds of a collision are. You could use storeAs($filePath,$fileName,$options) instead and generate your own unique name and add a unique user prefix to be sure. You also need to add the file extension at the end when using storeAs. In the past I have personally used this package github.com/spatie/laravel-medialibrary/tree/main to handle the storing when I have to do a lot of file uploads for multiple models or multiple files per model, it users folders to separate each models images by default.
@tmcxp
@tmcxp 4 месяца назад
It is very disorienting, but also a good opportunity for reviewing old code and their relation, painful tho lol
@BuffTheCreator
@BuffTheCreator 10 месяцев назад
you are very good at teaching keep it up! and i think you're persian... am i right ? i almost can feel the accent 😂
@yelocode
@yelocode 10 месяцев назад
Thanks for watching Buff. Yes, you are right 😉. Merci az support.
@MrOryly
@MrOryly 11 месяцев назад
Is it possible to store the validation in a separate file (function? class?) and call it only when needed? To avoid repeating the code. Assuming, of course, that we wants to validate the same data in different files :)
@PedroCoelho98
@PedroCoelho98 11 месяцев назад
I think so. I believe it's called a custom request. You can generate it with artisan make:request
@yelocode
@yelocode 11 месяцев назад
Yes, exactly what @PedroCoelho98 said.
@MrOryly
@MrOryly 11 месяцев назад
@@PedroCoelho98 Thx.
@lucascavalheri7217
@lucascavalheri7217 10 месяцев назад
I'm just loving the way you teach. I have a doubt... How would I get a preview of the image when editing?
@yelocode
@yelocode 10 месяцев назад
Glad to hear you like the videos :). Regarding image preview, would need to write some javascript, or also can do it with livewire, I do have a video on livewire file upload with image preview on the channel. In the upcoming episodes I will be redoing this part using livewire so it's live and add the image preview as well. Thank you for watching.
@technicalaman_kld2803
@technicalaman_kld2803 8 месяцев назад
Not easy understand
@dinaahmed92
@dinaahmed92 5 месяцев назад
you are so cleaver thank you for sharing that with us 🤍🤍
Далее
Follow & Unfollow | Laravel 10 Tutorial #28
18:21
Просмотров 4,2 тыс.
Laravel CRUD in 50 minutes for Beginners  from Scratch
49:58
마시멜로우로 체감되는 요즘 물가
00:20
Просмотров 18 млн
My Puzzle Robot is 200x Faster Than a Human
21:21
Просмотров 3,3 млн
НАМ ВРАЛИ О ПИРАТАХ
52:52
Просмотров 2,4 млн
IMAGE UPLOAD LARAVEL - HOW TO UPLOAD FILES #laravel
12:48
Profile Page | Laravel 10 Tutorial #26
18:47
Просмотров 6 тыс.
Why Don't We Have A Laravel For JavaScript?
12:36
Просмотров 89 тыс.
마시멜로우로 체감되는 요즘 물가
00:20
Просмотров 18 млн