public vs local disk laravel code example
Example 1: laravel get path to storage folder
$path = storage_path('app/file.txt');
Example 2: laravel store file
$path = $request->file('avatar')->store(
'avatars', 'public'
);
$path = storage_path('app/file.txt');
$path = $request->file('avatar')->store(
'avatars', 'public'
);