Api Provider for Laravel 5
Add yvolkan/apiprovider
to composer.json
.
"yvolkan/apiprovider": "~1.0"
Run composer update
to pull down the latest version of ApiProvider.
Or run
composer require yvolkan/apiprovider
Now open up /config/app.php
and add the service provider to your providers
array.
'providers' => [
YVolkan\ApiProvider\ApiProviderServiceProvider::class,
]
Now add the alias.
'aliases' => [
'ApiProvider' => YVolkan\ApiProvider\Facades\ApiProvider::class,
]