This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
DATE=`date +%d%b-%H%M%S` | |
unset PATH | |
# USER VARIABLES | |
MYSQLUSER=your-user | |
MYSQLPWD=your-password | |
MYSQLHOST=localhost | |
MYSQLBACKUPDIRROOT=~/backup/mysql |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Services; | |
use Spatie\MediaLibrary\UrlGenerator\S3UrlGenerator; | |
class MinioUrlGenerator extends S3UrlGenerator | |
{ | |
/** | |
* Get the url for a media item. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Providers; | |
use Illuminate\Support\ServiceProvider; | |
use Aws\S3\S3Client; | |
use League\Flysystem\AwsS3v3\AwsS3Adapter; | |
use League\Flysystem\Filesystem; | |
use Storage; |