I have a media folder under /App/storage/app/media where i'm planning to store all my uploaded files into. but i need the path to that folder ??? (not to /App/public where laravel normally stores files to public).
from my search i found this ridiculous solution? ironically it worked :-)
$path = Storage::disk('media')->getDriver()->getAdapter()->getPathPrefix().strtolower($newimage->id.'/md-'.$fileName); // where $newimage->id.'/md-'.$fileName is my encoded file name
I'm sure there is a better way to get the Path to the media folder?
Any Ideas ?????