LoginSignup
2
1

More than 5 years have passed since last update.

Laravel5.4でminioに接続するときの設定メモ

Posted at

ただのメモ書きです

filesystems.php
<?php

return [
    /*
    |
    | (色々省略)
    |
    */

    'disks' => [

        'local' => [
            'driver' => 'local',
            'root'   => storage_path('app'),
        ],

        'public' => [
            'driver'     => 'local',
            'root'       => storage_path('app/public'),
            'url'        => env('APP_URL').'/storage',
            'visibility' => 'public',
        ],

        's3' => [
            'driver'                  => 's3',
            'key'                     => 'AWSキー',
            'secret'                  => 'AWSシークレットキー',
            'region'                  => 'リージョン',
            'endpoint'                => 'minioのURL',
            'bucket'                  => 'Bucket名',
            'use_path_style_endpoint' => true,
        ],
    ],
];

'use_path_style_endpoint' => true
これをフレームワークとライブラリのソースから見つけ出すのに時間がかかった。

2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1