mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-18 22:33:44 +02:00
Add the ability to create mounts
This commit is contained in:
@@ -52,7 +52,7 @@ class Mount extends Model
|
||||
* @var string
|
||||
*/
|
||||
public static $validationRules = [
|
||||
'id' => 'required|string|size:36|unique:mounts,id',
|
||||
// 'id' => 'required|string|size:36|unique:mounts,id',
|
||||
'name' => 'required|string|min:2|max:64|unique:mounts,name',
|
||||
'description' => 'nullable|string|max:255',
|
||||
'source' => 'required|string',
|
||||
@@ -61,6 +61,13 @@ class Mount extends Model
|
||||
'user_mountable' => 'sometimes|boolean',
|
||||
];
|
||||
|
||||
/**
|
||||
* Disable timestamps on this model.
|
||||
*
|
||||
* @var bool
|
||||
*/
|
||||
public $timestamps = false;
|
||||
|
||||
/**
|
||||
* Returns all eggs that have this mount assigned.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user