You can install it via composer:
composer require alaaelgndy/s3-fucker
and the package will automatically register itself.
Then publish config files
php artisan vendor:publish --provider="Elgndy\S3Fucker\S3FuckerServiceProvider"
The content of the published config file:
<?php
return [
'folder_name' => 'course/', // that means you will find the dowloads in storage/app/downloads/course
'urls' => [
// urls to download
],
];
Add your links in urls
to be downloaded.
Run the s3-fucker
:
php artisan elgndy:s3-fucker
Note: it can be used for any public files even if not on s3.