$contents = Storage::disk('local')->get('file.txt');
Storage::disk('public')->putFile('folder-destination', $request->file('file-to-save'));
use IlluminateSupportFacadesStorage;
$path = Storage::path('file.jpg');
// First Method
use IlluminateSupportFacadesStorage;
Storage::disk('local')->put('example.txt', 'Contents');
// Second Method
$request->file('image')->storePublicly('images/media', ['disk' => 'public']);
use IlluminateSupportFacadesStorage;
Storage::disk('local')->put('example.txt', 'Contents');
use IlluminateSupportFacadesStorage;
Storage::disk('local')->put('example.txt', 'Contents');
//$file is full path
echo basename($file);