Made authorization.

This commit is contained in:
kor-elf committed 2023-07-06 10:48:32 +06:00
1 parent 6b2aff910b
commit f481ee765d
17 files changed
+356 -5

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
<?php declare(strict_types=1);
namespace App\Repositories;
use App\Models\User;
use Illuminate\Support\Str;
final readonly class UserRepository
{
public function getUserByEmail(string $email): ?User
{
return User::query()->where('email', Str::lower($email))->first();
}
}