Image Upload & Update Profile | Laravel 10 Tutorial #27

แชร์
ฝัง
  • เผยแพร่เมื่อ 31 ม.ค. 2025

ความคิดเห็น • 26

  • @Nozo_O_O
    @Nozo_O_O 8 หลายเดือนก่อน +2

    Thanks bro!, That was massive !! :D

  • @andrey8663
    @andrey8663 ปีที่แล้ว +1

    Thank you for this video. Very helped

    • @yelocode
      @yelocode  ปีที่แล้ว

      Glad to hear it!

  • @joaopauloabdalab
    @joaopauloabdalab ปีที่แล้ว +2

    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!

  • @ahmedghazy7618
    @ahmedghazy7618 5 หลายเดือนก่อน

    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

  • @kouzokiodin3623
    @kouzokiodin3623 7 หลายเดือนก่อน

    Thank you so much, just an issue when i click edite profile i can edite the iseas as well

  • @howasyourday3351
    @howasyourday3351 7 หลายเดือนก่อน

    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🙏

  • @MrOryly
    @MrOryly ปีที่แล้ว +1

    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 ปีที่แล้ว +2

      I think so. I believe it's called a custom request. You can generate it with artisan make:request

    • @yelocode
      @yelocode  ปีที่แล้ว +1

      Yes, exactly what @PedroCoelho98 said.

    • @MrOryly
      @MrOryly ปีที่แล้ว

      @@PedroCoelho98 Thx.

  • @BuffTheCreator
    @BuffTheCreator ปีที่แล้ว +1

    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.

  • @Vichion
    @Vichion ปีที่แล้ว +2

    "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,

  • @AnkitLakkad
    @AnkitLakkad 11 หลายเดือนก่อน

    Whenever you click on any idea cards username or it will redirect to the logged in user and not the creator of the idea

  • @snipohyper285
    @snipohyper285 4 หลายเดือนก่อน

    Boy the html part got me on walls .BUT GREAT VIDEO NONE THE LESS

  • @HamadAbdulla_7
    @HamadAbdulla_7 ปีที่แล้ว +1

    thank you

    • @yelocode
      @yelocode  ปีที่แล้ว

      Thank you for watching and the support.

  • @PedroCoelho98
    @PedroCoelho98 ปีที่แล้ว +1

    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.

  • @lucascavalheri7217
    @lucascavalheri7217 ปีที่แล้ว +1

    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  ปีที่แล้ว +1

      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.

  • @tmcxp
    @tmcxp 11 หลายเดือนก่อน +1

    It is very disorienting, but also a good opportunity for reviewing old code and their relation, painful tho lol

  • @technicalaman_kld2803
    @technicalaman_kld2803 ปีที่แล้ว

    Not easy understand

  • @dinaahmed92
    @dinaahmed92 ปีที่แล้ว

    you are so cleaver thank you for sharing that with us 🤍🤍