Reviewed-on: ordo/adw-backend#205
@ -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();
@ -15,6 +15,7 @@ class Divisi extends Model
'name',
'parent',
'description',
'color',
'created_at',
'created_by',
'updated_at',