|
|
@ -21,7 +21,8 @@ class DivisiController extends Controller |
|
|
|
$this->validate($request, [ |
|
|
|
$this->validate($request, [ |
|
|
|
'name' => 'string|required|unique:m_divisi,name', |
|
|
|
'name' => 'string|required|unique:m_divisi,name', |
|
|
|
'description' => 'nullable|string', |
|
|
|
'description' => 'nullable|string', |
|
|
|
'parent' => 'nullable|integer' |
|
|
|
'parent' => 'nullable|integer', |
|
|
|
|
|
|
|
'color'=>'nullable|string|max:10' |
|
|
|
]); |
|
|
|
]); |
|
|
|
|
|
|
|
|
|
|
|
$data = $request->all(); |
|
|
|
$data = $request->all(); |
|
|
|