1. Go to this page and download the library: Download dptsi/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/ */
dptsi / laravel-storage example snippets
use Dptsi\FileStorage\Facade\FileStorage;
FileStorage::upload($request->file('berkas'))
use Dptsi\FileStorage\Facade\FileStorage;
FileStorage::upload(new File($path))
use Dptsi\FileStorage\Facade\FileStorage;
FileStorage::delete($dokumen->file_id)
use Dptsi\FileStorage\Facade\FileStorage;
if($response->status == FileStorage::statusSuccess())
use Dptsi\FileStorage\Facade\FileStorage;
if($response->status == FileStorage::statusError())