1. Go to this page and download the library: Download curly-deni/laravel-storage library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
curly-deni / laravel-storage example snippets
use Aesis\Storage\Models\File;
$file = File::storeContents($user, 'avatars', $contents, 'png', 'image/png');
$url = $file->resolvedUrl();
$file->delete(); // Deletes the stored object and its database record.