LumenでS3にファイルを移動&コピーできない
LumenStorageS3&(`/var/www/html/storage/logs/lumen.log`)
File not found at path: lumen.log
filesystems.php
<?php
return [
'disks' => [
'local' => [
'driver' => 'local',
'root' => storage_path('logs'),
],
's3' => [
'driver' => 's3',
'root' => storage_path('logs'),
'key' => env('AWS_KEY'),
'secret' => env('AWS_SECRET'),
'region' => env('AWS_REGION'),
'bucket' => env('AWS_BUCKET'),
],
],
];
Storage
Storage::disk('s3')->move('lumen.log', 'storage.log');
Storage::disk('local')->move('lumen.log', 'storage.log');
S3S3
Storage::disk('s3')->push('hogehoge');
composer.json()
"laravel/lumen-framework": "5.5.*",
"league/flysystem-aws-s3-v3": "~1.0"
xcX3v84RxoQ-4GxG32940ukFUIEgYdPy
c3fe5a0972bb65e9fcfd5fcaccd10419