wire auth api
This commit is contained in:
parent
9e70fae38d
commit
eff7c5c281
12 changed files with 137 additions and 19 deletions
24
backend/app/Providers/RepositoryServiceProvider.php
Normal file
24
backend/app/Providers/RepositoryServiceProvider.php
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
<?php
|
||||
|
||||
namespace App\Providers;
|
||||
|
||||
use App\Auth\EloquentSessionRepository;
|
||||
use App\Auth\SessionRepository;
|
||||
use App\User\EloquentUserRepository;
|
||||
use App\User\UserRepository;
|
||||
use Illuminate\Support\ServiceProvider;
|
||||
|
||||
class RepositoryServiceProvider extends ServiceProvider
|
||||
{
|
||||
public function register(): void
|
||||
{
|
||||
$this->app->bind(
|
||||
UserRepository::class,
|
||||
EloquentUserRepository::class
|
||||
);
|
||||
$this->app->bind(
|
||||
SessionRepository::class,
|
||||
EloquentSessionRepository::class
|
||||
);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue