Laravel obtenga el camino hacia la carpeta de almacenamiento
$path = storage_path('app/file.txt');
Alberto Peripolli
$path = storage_path('app/file.txt');
$contents = Storage::disk('local')->get('file.txt');
use Illuminate\Support\Facades\Storage;
$path = Storage::path('file.jpg');
$path = $request->file('avatar')->store(
'avatars', 'public'
);
//$file is full path
echo basename($file);