mercredi 17 janvier 2018

Too few arguments to function Illuminate\Support\Manager::createDriver(), 0 passed in framework/src/Illuminate/Support/Manager.php

I am using smtp protocol to send mails using mailtrap. It is working perfectly in localhost but it is giving error. Symfony\Component\Debug\Exception\FatalThrowableError Type error: Too few arguments to function Illuminate\Support\Manager::createDriver(), 0 passed in public_html/vendor/laravel/framework/src/Illuminate/Support/Manager.php on line 88 and exactly 1 expected

.env

MAIL_DRIVER=smtp
MAIL_HOST=smtp.mailtrap.io
MAIL_PORT=2525
MAIL_USERNAME=cad1d0fc4f1b90a
MAIL_PASSWORD=2dd6eece79c337
MAIL_ENCRYPTION=null

mail.php

<?php
return [

    'driver' => env('MAIL_DRIVER', 'smtp'),
    'host' => env('MAIL_HOST', 'smtp.mailtrap.org'),
    'port' => env('MAIL_PORT', 2525,
    'from' => [
        'address' => env('MAIL_FROM_ADDRESS', 'hello@example.com'),
        'name' => env('MAIL_FROM_NAME', 'Example'),
    ],
    'encryption' => env('MAIL_ENCRYPTION', 'tls'),
    'username' => env('MAIL_USERNAME'),

    'password' => env('MAIL_PASSWORD'),
    'sendmail' => '/usr/sbin/sendmail -bs',

    'markdown' => [
        'theme' => 'default',

        'paths' => [
            resource_path('views/vendor/mail'),
        ],
    ],

];



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2DlCAAZ
via IFTTT

Aucun commentaire:

Enregistrer un commentaire