massive improvements to tests, streamlined and synced migrations, fixed a lot of wrong or old table field references. implemented a lot of pages in react for website frontend

This commit is contained in:
Codex Agent
2025-09-30 21:09:52 +02:00
parent 21c9391e2c
commit d1733686a6
114 changed files with 2867 additions and 2411 deletions

View File

@@ -56,6 +56,31 @@ class User extends Authenticatable implements MustVerifyEmail
];
}
/**
* Retrieve the user by the given credentials.
*/
public function retrieveByCredentials(array $credentials)
{
if ($this->getProvider()->hasTable($this->getTable())) {
return $this->newModelQuery()
->where(function ($query) use ($credentials) {
// Handle 'login' field for email or username
if (isset($credentials['login'])) {
$login = $credentials['login'];
$query->where('email', $login)
->orWhere('username', $login);
} else {
foreach ($this->getAuthIdentifiers() as $key => $value) {
$query->where($key, $value);
}
}
})
->first();
}
return null;
}
protected function fullName(): Attribute
{
return Attribute::make(