Skip to content

Commit

Permalink
WIP: boilerplate
Browse files Browse the repository at this point in the history
  • Loading branch information
agungsugiarto committed Mar 5, 2020
1 parent 71dc45f commit 6ed4dc9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/Controllers/Users/PermissionController.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,17 +131,4 @@ public function delete($id = null)
'messages' => 'Success delete',
]);
}

/**
* Validation Rules.
*
* @return array an array
*/
private function validationRules()
{
return [
'name' => 'required|max_length[255]|is_unique[auth_permissions.name',
'description' => 'required|max_length[255]',
];
}
}
9 changes: 9 additions & 0 deletions src/Views/Load/nestable.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<!-- Push section css -->
<?= $this->section('css') ?>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.nestable.min.css">
<?= $this->endSection() ?>

<!-- Push section js -->
<?= $this->section('js') ?>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.nestable.min.js"></script>
<?= $this->endSection() ?>

0 comments on commit 6ed4dc9

Please sign in to comment.