added nullable validation

This commit is contained in:
denisdulici
2018-06-30 12:33:05 +03:00
parent fce7b0e60c
commit 375718b5d0
7 changed files with 12 additions and 10 deletions

View File

@ -37,8 +37,9 @@ class Currency extends Request
'name' => 'required|string',
'code' => 'required|string|unique:currencies,NULL,' . $id . ',id,company_id,' . $company_id . ',deleted_at,NULL',
'rate' => 'required',
'enabled' => 'boolean',
'enabled' => 'integer|boolean',
'default_currency' => 'boolean',
'symbol_first' => 'nullable|boolean',
];
}
}