app: update models
This commit is contained in:
parent
28bc86e23b
commit
9d64c6751b
25 changed files with 55 additions and 54 deletions
|
@ -97,7 +97,7 @@ class ApiKey extends Model
|
|||
*
|
||||
* @var array
|
||||
*/
|
||||
public static $validationRules = [
|
||||
public static array $validationRules = [
|
||||
'user_id' => 'required|exists:users,id',
|
||||
'key_type' => 'present|integer|min:0|max:4',
|
||||
'identifier' => 'required|string|size:16|unique:api_keys,identifier',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue