jHannel
jHannel

Reputation: 203

Laravel - Driver [] is Not Supported

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!

Upvotes: 3

Views: 12948

Answers (3)

dipenparmar12
dipenparmar12

Reputation: 3495

I have solved my problem by following commands

php artisan cache:clear

php artisan config:clear

php artisan clear-compiled

Upvotes: 1

pburczyn
pburczyn

Reputation: 118

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

$app->configure('filesystems');

Upvotes: -1

user2644503
user2644503

Reputation: 1573

Most probably config cached. Try clear using

php artisan config:clear

Upvotes: 12

Related Questions