Browse Source

Merge pull request 'upload 2023-10-16' (#205) from staging into master

Reviewed-on: ordo/adw-backend#205
pull/3/head
farhantock 1 year ago
parent
commit
c03dcf4aa2
  1. 3
      app/Http/Controllers/DivisiController.php
  2. 1
      app/Models/Divisi.php

3
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();

1
app/Models/Divisi.php

@ -15,6 +15,7 @@ class Divisi extends Model
'name',
'parent',
'description',
'color',
'created_at',
'created_by',
'updated_at',

Loading…
Cancel
Save