mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-18 22:33:44 +02:00
Misc fixes
This commit is contained in:
@@ -65,8 +65,10 @@ class Egg extends Model implements CleansAttributes, ValidableContract
|
||||
*/
|
||||
protected static $applicationRules = [
|
||||
'nest_id' => 'required',
|
||||
'uuid' => 'required',
|
||||
'name' => 'required',
|
||||
'description' => 'required',
|
||||
'author' => 'required',
|
||||
'docker_image' => 'required',
|
||||
'startup' => 'required',
|
||||
'config_from' => 'sometimes',
|
||||
@@ -84,6 +86,7 @@ class Egg extends Model implements CleansAttributes, ValidableContract
|
||||
'uuid' => 'string|size:36',
|
||||
'name' => 'string|max:255',
|
||||
'description' => 'string',
|
||||
'author' => 'string|email',
|
||||
'docker_image' => 'string|max:255',
|
||||
'startup' => 'nullable|string',
|
||||
'config_from' => 'bail|nullable|numeric|exists:eggs,id',
|
||||
|
||||
@@ -49,7 +49,7 @@ class Nest extends Model implements CleansAttributes, ValidableContract
|
||||
* @var array
|
||||
*/
|
||||
protected static $dataIntegrityRules = [
|
||||
'author' => 'email',
|
||||
'author' => 'string|email',
|
||||
'name' => 'string|max:255',
|
||||
'description' => 'nullable|string',
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user