Fix user creation to use UUIDs correctly
Also updates the notification send method to be cleaner and more maintainable
This commit is contained in:
parent
410a0cca9a
commit
4457634127
5 changed files with 97 additions and 171 deletions
|
@ -115,6 +115,7 @@ class User extends Model implements
|
|||
* @var array
|
||||
*/
|
||||
protected static $applicationRules = [
|
||||
'uuid' => 'required',
|
||||
'email' => 'required',
|
||||
'username' => 'required',
|
||||
'name_first' => 'required',
|
||||
|
@ -130,6 +131,7 @@ class User extends Model implements
|
|||
* @var array
|
||||
*/
|
||||
protected static $dataIntegrityRules = [
|
||||
'uuid' => 'string|size:36|unique:users,uuid',
|
||||
'email' => 'email|unique:users,email',
|
||||
'username' => 'alpha_dash|between:1,255|unique:users,username',
|
||||
'name_first' => 'string|between:1,255',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue