update users
This commit is contained in:
@@ -44,7 +44,7 @@ class Client extends Resource
|
||||
* @var array<int, string>
|
||||
*/
|
||||
public static $search = [
|
||||
'id', 'name', 'email',
|
||||
'id', 'username', 'name', 'email', 'phone',
|
||||
];
|
||||
|
||||
/**
|
||||
@@ -99,7 +99,9 @@ class Client extends Resource
|
||||
NovaInputmask::make(__('Phone'), 'phone')
|
||||
->mask('+(\\9\\93)-99-99-99-99')
|
||||
->storeRawValue()
|
||||
->rules('nullable', 'integer', 'between:61000000, 71999999'),
|
||||
->rules('required', 'integer', 'between:61000000, 71999999')
|
||||
->creationRules('unique:users,phone')
|
||||
->updateRules('unique:users,phone,{{resourceId}}'),
|
||||
|
||||
Text::make(__('Email'), 'email')
|
||||
->sortable()
|
||||
|
||||
@@ -44,7 +44,7 @@ class Operator extends Resource
|
||||
* @var array<int, string>
|
||||
*/
|
||||
public static $search = [
|
||||
'id', 'name', 'email',
|
||||
'id', 'username', 'name', 'email', 'phone',
|
||||
];
|
||||
|
||||
/**
|
||||
@@ -135,7 +135,8 @@ class Operator extends Resource
|
||||
->canSeeWhen('isAdmin', $this),
|
||||
|
||||
BelongsToMany::make(__('Branches'), 'branches', Branch::class)
|
||||
->canSeeWhen('isAdmin', $this),
|
||||
->canSeeWhen('isAdmin', $this)
|
||||
->filterable(),
|
||||
|
||||
HasMany::make(__('Loan order'), 'loanOrders', LoanOrder::class),
|
||||
|
||||
|
||||
Reference in New Issue
Block a user