mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-24 21:24:13 -08:00
parent
0550fe0ffa
commit
e4385c0f8c
|
@ -27,11 +27,7 @@ class AssetRequest extends Request
|
||||||
*/
|
*/
|
||||||
public function rules()
|
public function rules()
|
||||||
{
|
{
|
||||||
// Below, asset_tag is duplicated here and in the model, largely because
|
|
||||||
// the functional tests will fail because of the way Form Requests work in
|
|
||||||
// Laravel.
|
|
||||||
$rules = [
|
$rules = [
|
||||||
'asset_tag' => 'required|min:1|max:255|unique_undeleted',
|
|
||||||
'name' => 'max:255|nullable',
|
'name' => 'max:255|nullable',
|
||||||
'model_id' => 'required|integer|exists:models,id',
|
'model_id' => 'required|integer|exists:models,id',
|
||||||
'status_id' => 'required|integer|exists:status_labels,id',
|
'status_id' => 'required|integer|exists:status_labels,id',
|
||||||
|
|
Loading…
Reference in a new issue