To use it, first set the below variables in your .env
and run php artisan config:cache
.
AWS_BUCKET=???
AWS_ACCESS_KEY_ID=???
AWS_SECRET_ACCESS_KEY=???
AWS_DEFAULT_REGION=???
AWS_ENDPOINT=???
In project folder, create a file named e.g., pu2s3.php
and paste the Gist's content in it. Thenafter, run below command:
php artisan tinker
>>> require 'pu2s3.php';
Then just wait for it to finish.