fix: 🐛 save customer email attribute in lower case #46
This commit is contained in:
parent
4bdb75f866
commit
688565c1ea
2 changed files with 13 additions and 1 deletions
|
|
@ -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
|
||||
*
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "uwil/gen-game-web",
|
||||
"version": "3.1.0",
|
||||
"version": "3.1.1",
|
||||
"type": "project",
|
||||
"description": "Game generator",
|
||||
"support": {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue