mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-19 14:53:45 +02:00
First push before 🥚
This commit is contained in:
@@ -34,8 +34,6 @@ class Service extends Model implements CleansAttributes, ValidableContract
|
||||
protected $fillable = [
|
||||
'name',
|
||||
'description',
|
||||
'startup',
|
||||
'index_file',
|
||||
];
|
||||
|
||||
/**
|
||||
@@ -45,8 +43,6 @@ class Service extends Model implements CleansAttributes, ValidableContract
|
||||
'author' => 'required',
|
||||
'name' => 'required',
|
||||
'description' => 'sometimes',
|
||||
'startup' => 'sometimes',
|
||||
'index_file' => 'required',
|
||||
];
|
||||
|
||||
/**
|
||||
@@ -56,8 +52,6 @@ class Service extends Model implements CleansAttributes, ValidableContract
|
||||
'author' => 'email',
|
||||
'name' => 'string|max:255',
|
||||
'description' => 'nullable|string',
|
||||
'startup' => 'nullable|string',
|
||||
'index_file' => 'string',
|
||||
];
|
||||
|
||||
/**
|
||||
|
||||
@@ -107,17 +107,6 @@ class ServiceOption extends Model implements CleansAttributes, ValidableContract
|
||||
'docker_image' => null,
|
||||
];
|
||||
|
||||
/**
|
||||
* Returns the display startup string for the option and will use the parent
|
||||
* service one if the option does not have one defined.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getDisplayStartupAttribute()
|
||||
{
|
||||
return (is_null($this->startup)) ? $this->service->startup : $this->startup;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the install script for the option; if option is copying from another
|
||||
* it will return the copied script.
|
||||
|
||||
Reference in New Issue
Block a user