Check for valid category types in validation

This commit is contained in:
snipe 2017-01-13 09:27:32 -08:00
parent 14ddcc56a2
commit 213a234bef
2 changed files with 2 additions and 1 deletions

View file

@ -200,7 +200,7 @@ class CategoriesController extends Controller
// Redirect to the user management page
return redirect()->route('categories.index')->with('error', $error);
}
public function getDataViewAssets(Request $request, $categoryID)
{

View file

@ -25,6 +25,7 @@ return array(
"file" => "The :attribute must be between :min - :max kilobytes.",
"string" => "The :attribute must be between :min - :max characters.",
),
"boolean" => "The :attribute must be true or false.",
"confirmed" => "The :attribute confirmation does not match.",
"date" => "The :attribute is not a valid date.",
"date_format" => "The :attribute does not match the format :format.",