Add the ability to create mounts

This commit is contained in:
Matthew Penner 2020-05-20 18:55:59 -06:00
parent a750362e5a
commit a4af8ec977
6 changed files with 167 additions and 5 deletions

View file

@ -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.
*