Image Upload & Update Profile | Laravel 10 Tutorial #27

  Рет қаралды 16,219

Yelo Code

Yelo Code

Күн бұрын

Пікірлер: 26
@joaopauloabdalab
@joaopauloabdalab Жыл бұрын
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!
@Nozo_O_O
@Nozo_O_O 7 ай бұрын
Thanks bro!, That was massive !! :D
@Vichion
@Vichion Жыл бұрын
"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 6 ай бұрын
Thank you so much, just an issue when i click edite profile i can edite the iseas as well
@andrey8663
@andrey8663 Жыл бұрын
Thank you for this video. Very helped
@yelocode
@yelocode Жыл бұрын
Glad to hear it!
@howasyourday3351
@howasyourday3351 5 ай бұрын
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🙏
@ahmedghazy7618
@ahmedghazy7618 3 ай бұрын
may I ask why the "route('users.show')"can't be used in the navbar instead of the profile route? thank you for vids it's been a great help
@snipohyper285
@snipohyper285 3 ай бұрын
Boy the html part got me on walls .BUT GREAT VIDEO NONE THE LESS
@AnkitLakkad
@AnkitLakkad 10 ай бұрын
Whenever you click on any idea cards username or it will redirect to the logged in user and not the creator of the idea
@MrOryly
@MrOryly Жыл бұрын
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 Жыл бұрын
I think so. I believe it's called a custom request. You can generate it with artisan make:request
@yelocode
@yelocode Жыл бұрын
Yes, exactly what @PedroCoelho98 said.
@MrOryly
@MrOryly Жыл бұрын
@@PedroCoelho98 Thx.
@PedroCoelho98
@PedroCoelho98 Жыл бұрын
Does the image store method generate unique filenames? Or can we replace files by accident?
@yelocode
@yelocode Жыл бұрын
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.
@BuffTheCreator
@BuffTheCreator Жыл бұрын
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 Жыл бұрын
Thanks for watching Buff. Yes, you are right 😉. Merci az support.
@tmcxp
@tmcxp 9 ай бұрын
It is very disorienting, but also a good opportunity for reviewing old code and their relation, painful tho lol
@HamadAbdulla_7
@HamadAbdulla_7 Жыл бұрын
thank you
@yelocode
@yelocode Жыл бұрын
Thank you for watching and the support.
@lucascavalheri7217
@lucascavalheri7217 Жыл бұрын
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 Жыл бұрын
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 Жыл бұрын
Not easy understand
@dinaahmed92
@dinaahmed92 10 ай бұрын
you are so cleaver thank you for sharing that with us 🤍🤍
Follow & Unfollow | Laravel 10 Tutorial #28
18:21
Yelo Code
Рет қаралды 5 М.
Laravel Upload Image and Create Storage Link
17:28
Code Online
Рет қаралды 75 М.
黑天使只对C罗有感觉#short #angel #clown
00:39
Super Beauty team
Рет қаралды 34 МЛН
Creating comments (relationships) | Laravel 10 Tutorial #18
17:53
Emails & Mail Trap testing | Laravel 10 Tutorial #29
16:17
Yelo Code
Рет қаралды 6 М.
Blade templates & Layouts | Laravel 10 Tutorial #7
14:27
Yelo Code
Рет қаралды 47 М.
Why aren't you using Fastify? Or Koa? Or NestJS?
9:58
Maximilian Schwarzmüller
Рет қаралды 68 М.
The Pros and Cons of Laravel Livewire
20:16
Josh Cirre
Рет қаралды 9 М.
Laravel 11 tutorial #38 Upload file | upload and display image
14:26
Code Step By Step
Рет қаралды 1,3 М.
Like Button | Laravel 10 Tutorial #33
27:37
Yelo Code
Рет қаралды 7 М.
黑天使只对C罗有感觉#short #angel #clown
00:39
Super Beauty team
Рет қаралды 34 МЛН