From 6996f1fff378e55d760022e46b7dbab39719670f Mon Sep 17 00:00:00 2001 From: wahyuun Date: Mon, 16 Oct 2023 10:58:26 +0700 Subject: [PATCH] add color column in select query --- app/Http/Controllers/DivisiController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Http/Controllers/DivisiController.php b/app/Http/Controllers/DivisiController.php index e398682..2d056aa 100644 --- a/app/Http/Controllers/DivisiController.php +++ b/app/Http/Controllers/DivisiController.php @@ -21,7 +21,8 @@ class DivisiController extends Controller $this->validate($request, [ 'name' => 'string|required|unique:m_divisi,name', 'description' => 'nullable|string', - 'parent' => 'nullable|integer' + 'parent' => 'nullable|integer', + 'color'=>'nullable|string|max:10' ]); $data = $request->all();