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!
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🙏
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 :)
"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,
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.
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.
Thanks bro!, That was massive !! :D
Thank you for this video. Very helped
Glad to hear it!
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!
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
Thank you so much, just an issue when i click edite profile i can edite the iseas as well
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🙏
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 :)
I think so. I believe it's called a custom request. You can generate it with artisan make:request
Yes, exactly what @PedroCoelho98 said.
@@PedroCoelho98 Thx.
you are very good at teaching
keep it up!
and i think you're persian... am i right ? i almost can feel the accent
😂
Thanks for watching Buff. Yes, you are right 😉. Merci az support.
"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,
Whenever you click on any idea cards username or it will redirect to the logged in user and not the creator of the idea
Boy the html part got me on walls .BUT GREAT VIDEO NONE THE LESS
thank you
Thank you for watching and the support.
Does the image store method generate unique filenames? Or can we replace files by accident?
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.
I'm just loving the way you teach.
I have a doubt...
How would I get a preview of the image when editing?
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.
It is very disorienting, but also a good opportunity for reviewing old code and their relation, painful tho lol
Not easy understand
you are so cleaver thank you for sharing that with us 🤍🤍