fix: 🐛 save customer email attribute in lower case #46

This commit is contained in:
Alexis Gousseau 2025-08-18 15:18:03 +00:00 • committed by Vincent BRIDIER
parent 4bdb75f866
commit 688565c1ea
2 changed files with 13 additions and 1 deletions

View file

@ -17,6 +17,7 @@ use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifiable;
use Illuminate\Support\Facades\Cache;
use Illuminate\Support\Facades\Validator;
use Illuminate\Support\Str;
use Illuminate\Validation\Rule;
use Illuminate\Validation\ValidationException;
use LDC\LDCCRM\Enums\ApiError;
@ -101,6 +102,17 @@ class Customer extends Authenticatable implements MustVerifyEmail
// * RELATIONSHIPS
/**
* Set email attribute in lower case.
*
* @param string $value
* @return void
*/
public function setEmailAttribute(string $value): void
{
$this->attributes['email'] = Str::lower($value);
}
/**
* Has Many Participation relation
*

View file

@ -1,6 +1,6 @@
{
"name": "uwil/gen-game-web",
"version": "3.1.0",
"version": "3.1.1",
"type": "project",
"description": "Game generator",
"support": {