add auth sessions
This commit is contained in:
parent
a37c8da555
commit
34e26f81f5
9 changed files with 243 additions and 0 deletions
|
|
@ -2,6 +2,10 @@
|
|||
|
||||
namespace App\Providers;
|
||||
|
||||
use App\Auth\Clock;
|
||||
use App\Auth\EloquentSessionRepository;
|
||||
use App\Auth\SessionRepository;
|
||||
use App\Auth\SystemClock;
|
||||
use App\User\EloquentUserRepository;
|
||||
use App\User\UserRepository;
|
||||
use Carbon\CarbonImmutable;
|
||||
|
|
@ -21,6 +25,11 @@ class AppServiceProvider extends ServiceProvider
|
|||
UserRepository::class,
|
||||
EloquentUserRepository::class,
|
||||
);
|
||||
$this->app->bind(
|
||||
SessionRepository::class,
|
||||
EloquentSessionRepository::class,
|
||||
);
|
||||
$this->app->bind(Clock::class, SystemClock::class);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue