3

I haven't found an example like mine, the others appear to be missing what I already have but anyways, I'm trying to upload to an external FTP site, to which I have the following in my filesystem.php file:

    's3' => [
        'driver' => 's3',
        'key' => env('AWS_ACCESS_KEY_ID'),
        'secret' => env('AWS_SECRET_ACCESS_KEY'),
        'region' => env('AWS_DEFAULT_REGION'),
        'bucket' => env('AWS_BUCKET'),
    ],

     'fourkites-ftp' => [
        'driver' => 'ftp',
        'host' => 'ftp.site.com',
        'username' => 'my-username',
        'password' => 'my-password',

    ],

And I'm trying to send the file along with the following in one of my controllers:

  Storage::disk('fourkites-ftp')->put('new/afnloads.csv', $temp);

And as I'm trying testing it, it gives me this error:

(1/1) InvalidArgumentException 
Driver [] is not supported.
in FilesystemManager.php line 126

Are there any suggestions? Thanks!

jHannel
  • 203
  • 1
  • 3
  • 14

3 Answers3

12

Most probably config cached. Try clear using

php artisan config:clear
user2644503
  • 1,553
  • 1
  • 13
  • 11
1

I have solved my problem by following commands

php artisan cache:clear

php artisan config:clear

php artisan clear-compiled

dipenparmar12
  • 3,042
  • 1
  • 29
  • 39
-1

It helped me adding this line to bootstrap/app.php (in 'Create The Application' section)

$app->configure('filesystems');
pburczyn
  • 98
  • 1
  • 6