Added a clarifying comment

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2020-05-11 18:10:45 -07:00
parent f46ecf8ec0
commit bb42109c0c
No known key found for this signature in database
GPG key ID: 10BFFDA3ED34B5AC

View file

@ -27,6 +27,9 @@ class AssetRequest extends Request
*/
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 = [
'asset_tag' => 'required|min:1|max:255|unique_undeleted',
'name' => 'max:255|nullable',