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

  Рет қаралды 35,280

Code With Dary

Code With Dary

3 жыл бұрын

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/course/masterin...
📲 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/codewithdary
💌 Newsletter
Sign up for my free weekly email newsletter: www.newsletter.codewithdary.com
🔥 Resources
- PHP Hosting (10% DISCOUNT): www.hostinger.com/codewithdary
- TikTok: / codewithdary
- Instagram: / codewithdary
- Twitter: / codewithdary
- Blog: blog.codewithdary.com/
- Newsletter: newsletter.codewithdary.com/
- Patreon: www.patreon.com/user?u=30307830
- GitHub: github.com/codewithdary
Want to learn more?
- Courses: / @codewithdary
#laravel #laravel8 #php #images

Пікірлер: 43
@codewithdary
@codewithdary 2 жыл бұрын
LETS CONNECT THROUGH INSTAGRAM. www.Instagram.com/codewithdary
@TienNguyen-ub2cs
@TienNguyen-ub2cs Жыл бұрын
Thank you so much, finally I can access my images!
@codewithdary
@codewithdary Жыл бұрын
Glad I could help!
@mibrahim4245
@mibrahim4245 2 жыл бұрын
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
@LemonSix
@LemonSix Жыл бұрын
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
@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 :)
@mitchelk.3682
@mitchelk.3682 2 жыл бұрын
Thanks i forgot how the linking worked and was struggling with it for a bit.
@codewithdary
@codewithdary 2 жыл бұрын
Glad I could help!
@rajabhishek2936
@rajabhishek2936 3 жыл бұрын
Amezing...
@Jack.m7
@Jack.m7 3 жыл бұрын
👍 love your channel!
@codewithdary
@codewithdary 3 жыл бұрын
Thanks so much!
@divvia-ot9py
@divvia-ot9py 5 ай бұрын
thank you for your help! :)
@codewithdary
@codewithdary 5 ай бұрын
You're welcome!
@user-px8hg3si1j
@user-px8hg3si1j Жыл бұрын
Thank you veryyy muchh!
@codewithdary
@codewithdary Жыл бұрын
Thank you for watching :)
@nunes-issi
@nunes-issi Жыл бұрын
Thank you so much
@codewithdary
@codewithdary Жыл бұрын
No no no, thank you for watching Eduardo!
@blessed-favored
@blessed-favored 2 жыл бұрын
Lovely tutorial...
@codewithdary
@codewithdary 2 жыл бұрын
Thanks!!
@blessed-favored
@blessed-favored 2 жыл бұрын
@@codewithdary Welcome
@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.
@ryantheghost2185
@ryantheghost2185 3 жыл бұрын
Great vid
@muazanqureshi403
@muazanqureshi403 3 жыл бұрын
Thanks Dear
@codewithdary
@codewithdary 3 жыл бұрын
You’re welcome 😊
@OluwapamilerinSOBIYEDE
@OluwapamilerinSOBIYEDE Жыл бұрын
Thanks a bunch bruh
@codewithdary
@codewithdary Жыл бұрын
Thank you for watching :)
@icickeciak
@icickeciak 2 жыл бұрын
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/.
@tomasduarte1634
@tomasduarte1634 3 жыл бұрын
thank you
@codewithdary
@codewithdary 3 жыл бұрын
You're welcome
@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.
@manoasankad
@manoasankad 6 ай бұрын
tx
@codewithdary
@codewithdary 6 ай бұрын
Thanks for watching :)
@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 жыл бұрын
URL() will look into the public folder where you should store images:)
@sarmad54
@sarmad54 2 жыл бұрын
@@codewithdary Many thanks
Blade Directives in Laravel | Laravel For Beginners | Learn Laravel
9:20
Mama vs Son vs Daddy 😭🤣
00:13
DADDYSON SHOW
Рет қаралды 46 МЛН
A teacher captured the cutest moment at the nursery #shorts
00:33
Fabiosa Stories
Рет қаралды 52 МЛН
Can A Seed Grow In Your Nose? 🤔
00:33
Zack D. Films
Рет қаралды 21 МЛН
Clown takes blame for missing candy 🍬🤣 #shorts
00:49
Yoeslan
Рет қаралды 45 МЛН
Introduction To Eloquent | Laravel For Beginners | Learn Laravel
45:20
Inside Google’s $2.1B Office in a Transformed Freight Terminal | WSJ Open Office
8:56
How To Load Images Like A Pro
15:48
Web Dev Simplified
Рет қаралды 365 М.
How to use Middleware in Laravel 11 with Example For Beginners
12:59
Web Tech Knowledge
Рет қаралды 14 М.
How I'd Learn Web Development (If I Could Start Over)
6:55
Dylan Cole
Рет қаралды 539 М.
How to OVER Engineer a Website // What is a Tech Stack?
11:20
Fireship
Рет қаралды 2,4 МЛН
File Upload in Laravel: Main Things You Need To Know
13:58
Laravel Daily
Рет қаралды 22 М.
I Tried Every AI Coding Assistant
24:50
Conner Ardman
Рет қаралды 751 М.
Are we going back to PHP with fullstack JavaScript?
9:57
Maximilian Schwarzmüller
Рет қаралды 133 М.
Mama vs Son vs Daddy 😭🤣
00:13
DADDYSON SHOW
Рет қаралды 46 МЛН