How to access images in Laravel | Laravel For Beginners | Learn Laravel

แชร์
ฝัง
  • เผยแพร่เมื่อ 23 ก.ย. 2024
  • This video will show the different methods and best practices on how you could access images in Laravel - Learn one of the most popular PHP frameworks for its advanced features, templating engine, fast commands and security.
    📚 New Udemy Course
    If you're looking to level up your Laravel skills, my new course "Udemy Migirations, Seeders, Factories, Query Builder, Eloquent & Relationships" is the perfect opportunity. Learn the essential tools and techniques for building robust and scalable web applications with Laravel: www.udemy.com/...
    📲 Let’s plan a meeting
    Plan a (paid) 1-hour meeting on Calendly to do portfolio reviews, code reviews resume reviews or a coaching session for Laravel. Please read the description before booking: calendly.com/c...
    💌 Newsletter
    Sign up for my free weekly email newsletter: www.newsletter...
    🔥 Resources
    - PHP Hosting (10% DISCOUNT): www.hostinger....
    - TikTok: / codewithdary
    - Instagram: / codewithdary
    - Twitter: / codewithdary
    - Blog: blog.codewithd...
    - Newsletter: newsletter.cod...
    - Patreon: www.patreon.co...
    - GitHub: github.com/cod...
    Want to learn more?
    - Courses: / @codewithdary
    #laravel #laravel8 #php #images

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

  • @codewithdary
    @codewithdary  2 ปีที่แล้ว

    LETS CONNECT THROUGH INSTAGRAM.
    instagram.com/codewithdary

  • @TienNguyen-ub2cs
    @TienNguyen-ub2cs ปีที่แล้ว +1

    Thank you so much, finally I can access my images!

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

    Man you are the best, i was struggling with this stupid problem because vscodes intellisense wasn't recognizing the url as a function

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

      That's one of the reasons I switched to PHPStorm again. Thank you anyways

  • @mitchelk.3682
    @mitchelk.3682 2 ปีที่แล้ว +1

    Thanks i forgot how the linking worked and was struggling with it for a bit.

  • @divvia-ot9py
    @divvia-ot9py 7 หลายเดือนก่อน +1

    thank you for your help! :)

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

      You're welcome!

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

    Thank you veryyy muchh!

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

    thank you ..
    a question:
    if I stored my images into "storage/app/images" and I made a route called "secrets" and a controller that changes the path from "secrets/img1" to "storage/app/images/img1" ..
    so when I add an image tag with the route "secrets/img1" it will show the image and will not show the original link "inside the storage" ..
    everything worked here ..
    BUT,, if I write the original url : localhost/..../storage/app/images/img1.jpg
    it will show the file!! .. so how to show 404 for example, and allow only each user to view his own image ?
    THANKS

  • @nunes-issi
    @nunes-issi 2 ปีที่แล้ว +1

    Thank you so much

    • @codewithdary
      @codewithdary  2 ปีที่แล้ว

      No no no, thank you for watching Eduardo!

  • @blessed-favored
    @blessed-favored 2 ปีที่แล้ว +1

    Lovely tutorial...

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

    Why is using a link more secure? I can still view the image by typing "/storage/img.png" in the address bar as if I had it in the public folder

    • @codewithdary
      @codewithdary  2 ปีที่แล้ว

      You probably made a mistake something because the storage folder is secure since no one can access it via the url because your root is public/.

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

    Thanks a bunch bruh

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

    Thanks Dear

  • @Jack.m7
    @Jack.m7 3 ปีที่แล้ว

    👍 love your channel!

  • @TheMonjaMonja
    @TheMonjaMonja 3 ปีที่แล้ว

    Good day Dary! I might be late with this course but I was wondering if, is it necessary to copy the index.blade.php in the storage folder together with the pictures? or was it a mistake? Looking forward to your reply!

    • @codewithdary
      @codewithdary  3 ปีที่แล้ว

      No it's not! I mean it's not something that I would do :)

  • @346ask
    @346ask 2 ปีที่แล้ว

    For some reason this does not work for me. I have folder /public/uploads and I've tried everything and yet it does not work. When i try going to the img url it says page not found... Not sure why, the URL path is correct.

  • @OnlyJavascript
    @OnlyJavascript 3 ปีที่แล้ว

    Hello Dary, I need a little help in understanding "object communication". Can you please make one video on this OOP concept.

    • @codewithdary
      @codewithdary  3 ปีที่แล้ว

      I’ve got a complete course based in object oriented php. Or isn’t that what you mean?

    • @OnlyJavascript
      @OnlyJavascript 3 ปีที่แล้ว

      @@codewithdary I mean object communication. I completed your oop tuts.

    • @OnlyJavascript
      @OnlyJavascript 3 ปีที่แล้ว

      @@codewithdary

    • @OnlyJavascript
      @OnlyJavascript 3 ปีที่แล้ว

      this one is more confusing to me.

  • @tomasduarte1634
    @tomasduarte1634 3 ปีที่แล้ว

    thank you

  • @manoasankad
    @manoasankad 8 หลายเดือนก่อน +1

    tx

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

      Thanks for watching :)

  • @rajabhishek2936
    @rajabhishek2936 3 ปีที่แล้ว

    Amezing...

  • @ryantheghost2185
    @ryantheghost2185 3 ปีที่แล้ว

    Great vid

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

    no me funciona =(

  • @sarmad54
    @sarmad54 2 ปีที่แล้ว

    Hello Dary, hope everything is fine and smooth with you. One thing I still do not understand I encountered in this video is the
    structure src="{{URL("images/team-section-home.jpg")}}" alt="")>. This is not usually the usual form fo accessing an image as we used to use something like src= 'imag.jpg ....... Could you kindly explain this new encounter that appear with the double curly brackets. Lots of thanks.

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

      URL() will look into the public folder where you should store images:)

    • @sarmad54
      @sarmad54 2 ปีที่แล้ว

      @@codewithdary Many thanks