Repository URL to install this package:
|
Version:
1.0.0 ▾
|
<?php namespace Modules\Users\Providers;
use Illuminate\Support\ServiceProvider;
class AuthServiceProvider extends ServiceProvider
{
/**
* Register the authenticator services.
*
* @return void
*/
public function register()
{
/*$this->app->singleton('auth', function ($app) {
// Once the authentication service has actually been requested by the developer
// we will set a variable in the application indicating such. This helps us
// know that we need to set any queued cookies in the after event later.
$app['auth.loaded'] = true;
return new AuthManager($app);
});
/*
* extend manager with custom driver creator for default config.auth.driver
*/
$this->app['auth']->provider('cmsauth', function ($app) {
$model = $app['config']['auth.providers.users.model'];
return new EloquentUserProvider($app['hash'], $model);
});
/*$this->app->singleton('auth.driver', function ($app) {
return $app['auth']->guard();
});*/
}
}