how to write a stream on local storage disk laravel code example
Example 1: laravel link storage to public
php artisan storage:link
Example 2: laravel store file
$path = $request->file('avatar')->store(
'avatars', 'public'
);
php artisan storage:link
$path = $request->file('avatar')->store(
'avatars', 'public'
);