Jamie
Jamie

Reputation: 10886

Laravel access uploaded file

I've successfully uploaded an image like this:

Storage::put($path,$request->file($name));

But how could I acces this right now? The file is in storage/app/employees/3/profile.

When I go to .dev/storage/app/employees/3/profile/image.png the route is not found.

Upvotes: 0

Views: 553

Answers (1)

Imtiaz Pabel
Imtiaz Pabel

Reputation: 5443

your image path will be

<img src="{{storage_path('app/employees/3/profile/image.png')}}">

Upvotes: 1

Related Questions