laravel-nami-api/src/NamiServiceProvider.php

24 lines
517 B
PHP
Raw Normal View History

2020-06-27 23:45:49 +02:00
<?php
namespace Zoomyboy\LaravelNami;
use Illuminate\Support\Facades\Auth;
use GuzzleHttp\Client as GuzzleClient;
use Illuminate\Support\ServiceProvider;
class NamiServiceProvider extends ServiceProvider
{
public function boot()
{
Auth::provider('nami', function ($app, array $config) {
return new NamiUserProvider($config['model']);
});
}
public function register() {
$this->app->bind('nami.api', function() {
return new Api();
});
}
}