jeudi 2 juin 2016

How to remove public dir from storage path in Laravel 5.2

I am using below code

dd(URL(env("UserFolder") . \Auth::user()->UserID . "/" . \Auth::user()->UniqueFileName));

which gives below result.

http://localhost/SportsApp/public/storage/User17/9.png

Is there any way to remove public directory from this Url: http://localhost/SportsApp/public/storage/User17/9.png?

I meant Is there any inbuilt method that gives me Url for Storage directory?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire