Laravel 5.5+

If you're using Laravel 5.5 or above, the package will automatically register the Nexmo provider and facade.

Laravel 5.4 and below

Add Nexmo\Laravel\NexmoServiceProvider to the providers array in your config/app.php:

'providers'=> [// Other service providers...Nexmo\Laravel\NexmoServiceProvider::class,],

If you want to use the facade interface, you can use the facade class when needed:

useNexmo\Laravel\Facade\Nexmo;

Or add an alias in your config/app.php:

'aliases'=> [...'Nexmo'=>Nexmo\Laravel\Facade\Nexmo::class,],

Using Nexmo-Laravel with Lumen

Nexmo-Laravel works with Lumen too! You'll need to do a little work by hand
to get it up and running. First, install the package using composer:

composer require nexmo/laravel

Next, we have to tell Lumen that our library exists. Update bootstrap/app.php
and register the NexmoServiceProvider:

$app->register(Nexmo\Laravel\NexmoServiceProvider::class);

Finally, we need to configure the library. Unfortunately Lumen doesn't support
auto-publishing files so you'll have to create the config file yourself by creating
a config directory and copying the config file out of the package in to your project: