Laravel pegue o caminho para a pasta de armazenamento
$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);