Storage 保存文件
設定
php artisan storage:link<?php
return [
'default' => 'ftp', // Supported: "local", "ftp", "s3", "rackspace"
'cloud' => 'ftp', // 預設是'cloud' => 's3',
'disks' => [
'local' => [
'driver' => 'local',
'root' => storage_path('app'),
],
'public' => [
'driver' => 'local',
'root' => storage_path('app/public'),
'visibility' => 'public',
],
's3' => [
'driver' => 's3',
'key' => 'your-key',
'secret' => 'your-secret',
'region' => 'your-region',
'bucket' => 'your-bucket',
],
'ftp' => [ // 你所架設的FTP的設定在這邊
'driver' => 'ftp',
'host' => '192.168.30.212',
'username' => 'root',
'password' => '12347890',
],
],
];功能
Last updated