You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
willaengine/app/CorePackages/Authenticate/AthenticateServiceProvider.php

32 lines
528 B

<?php
namespace App\CorePackages\Authenticate;
use Illuminate\Support\ServiceProvider;
class AthenticateServiceProvider extends ServiceProvider
{
protected $defer = true;
public function register()
{
$this->app->singleton(AuthFinderFacade::class, function () {
return AuthFinderFacade::user();
});
}
/**
* Get the services provided by the provider.
*
* @return array
*/
public function provides()
{
return [AuthFinder::class];
}
}