Laravel Get Path to Storage Dossier
$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);