不支持驱动程序 [nexmo] Laravel 6

Driver [nexmo] not supported Laravel 6

我正在为 Laravel 使用 Nexmo 通知库,但自从我升级到 Laravel 6 后,它突然停止工作了。

这里是错误:

(1/1) InvalidArgumentException Driver [nexmo] not supported.

知道这是为什么吗?

我已经通过我的作曲家文件正确安装了库:

"nexmo/laravel": "^2.1.0",

似乎没有正确地自动加载库。

下面是我的 config/app.php 文件:

'providers' => [

        /*
         * Laravel Framework Service Providers...
         */
        Illuminate\Auth\AuthServiceProvider::class,
        Illuminate\Broadcasting\BroadcastServiceProvider::class,
        Illuminate\Bus\BusServiceProvider::class,
        Illuminate\Cache\CacheServiceProvider::class,
        Illuminate\Foundation\Providers\ConsoleSupportServiceProvider::class,
        Illuminate\Cookie\CookieServiceProvider::class,
        Illuminate\Database\DatabaseServiceProvider::class,
        Illuminate\Encryption\EncryptionServiceProvider::class,
        Illuminate\Filesystem\FilesystemServiceProvider::class,
        Illuminate\Foundation\Providers\FoundationServiceProvider::class,
        Illuminate\Hashing\HashServiceProvider::class,
        Illuminate\Mail\MailServiceProvider::class,
        Illuminate\Notifications\NotificationServiceProvider::class,
        Illuminate\Pagination\PaginationServiceProvider::class,
        Illuminate\Pipeline\PipelineServiceProvider::class,
        Illuminate\Queue\QueueServiceProvider::class,
        Illuminate\Redis\RedisServiceProvider::class,
        Illuminate\Auth\Passwords\PasswordResetServiceProvider::class,
        Illuminate\Session\SessionServiceProvider::class,
        Illuminate\Translation\TranslationServiceProvider::class,
        Illuminate\Validation\ValidationServiceProvider::class,
        Illuminate\View\ViewServiceProvider::class,
        Collective\Html\HtmlServiceProvider::class,

        /*
         * Package Service Providers...

         */


        Yajra\Datatables\DatatablesServiceProvider::class,
        ConsoleTVs\Charts\ChartsServiceProvider::class,
        SimpleSoftwareIO\SMS\SMSServiceProvider::class,
        Spatie\GoogleCalendar\GoogleCalendarServiceProvider::class,
        Nexmo\Laravel\NexmoServiceProvider::class,
        Propaganistas\LaravelPhone\PhoneServiceProvider::class,
        Barryvdh\Debugbar\ServiceProvider::class,
        DrawMyAttention\XeroLaravel\Providers\XeroServiceProvider::class,
        /*
         * Application Service Providers...
         */
        App\Providers\AppServiceProvider::class,
        App\Providers\AuthServiceProvider::class,
        App\Providers\BroadcastServiceProvider::class,
        App\Providers\EventServiceProvider::class,
        App\Providers\RouteServiceProvider::class,
        App\Providers\DropboxServiceProvider::class,
        App\Providers\ExtendedXeroServiceProvider::class,

    ],

获取通知驱动程序的包是 laravel/nexmo-notification-channel 而不是一般的 nexmo/laravel 包,它只是让 nexmo/client 库在您的 Laravel 应用程序中更容易使用。

尝试安装 laravel/nexmo-notification-channel 并告诉我们你的进展如何?