app: update models
This commit is contained in:
parent
28bc86e23b
commit
9d64c6751b
25 changed files with 55 additions and 54 deletions
|
@ -107,10 +107,7 @@ class Server extends Model
|
|||
*/
|
||||
protected $guarded = ['id', self::CREATED_AT, self::UPDATED_AT, 'deleted_at'];
|
||||
|
||||
/**
|
||||
* @var array
|
||||
*/
|
||||
public static $validationRules = [
|
||||
public static array $validationRules = [
|
||||
'external_id' => 'sometimes|nullable|string|between:1,191|unique:servers',
|
||||
'owner_id' => 'required|integer|exists:users,id',
|
||||
'name' => 'required|string|min:1|max:191',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue