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
LETS CONNECT THROUGH INSTAGRAM.
instagram.com/codewithdary
Thank you so much, finally I can access my images!
Glad I could help!
Man you are the best, i was struggling with this stupid problem because vscodes intellisense wasn't recognizing the url as a function
That's one of the reasons I switched to PHPStorm again. Thank you anyways
Thanks i forgot how the linking worked and was struggling with it for a bit.
Glad I could help!
thank you for your help! :)
You're welcome!
Thank you veryyy muchh!
Thank you for watching :)
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
Thank you so much
No no no, thank you for watching Eduardo!
Lovely tutorial...
Thanks!!
@@codewithdary Welcome
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
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/.
Thanks a bunch bruh
Thank you for watching :)
Thanks Dear
You’re welcome 😊
👍 love your channel!
Thanks so much!
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!
No it's not! I mean it's not something that I would do :)
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.
Hello Dary, I need a little help in understanding "object communication". Can you please make one video on this OOP concept.
I’ve got a complete course based in object oriented php. Or isn’t that what you mean?
@@codewithdary I mean object communication. I completed your oop tuts.
@@codewithdary
this one is more confusing to me.
thank you
You're welcome
tx
Thanks for watching :)
Amezing...
Great vid
no me funciona =(
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.
URL() will look into the public folder where you should store images:)
@@codewithdary Many thanks