model = $model; } public function getUserByEmail(string $email): ?array { return $this->model->where('email', $email)->first(); } }