diff --git a/src/Controllers/RoleController.php b/src/Controllers/RoleController.php index f4f5743..67e8195 100644 --- a/src/Controllers/RoleController.php +++ b/src/Controllers/RoleController.php @@ -16,7 +16,7 @@ class RoleController extends Controller */ public function index() { - return view('laralum_roles::index', ['roles' => Role::all()]); + return view('laralum_roles::index', ['roles' => Role::paginate(50)]); } /** diff --git a/src/Views/index.blade.php b/src/Views/index.blade.php index 1ba472e..181b090 100644 --- a/src/Views/index.blade.php +++ b/src/Views/index.blade.php @@ -73,6 +73,7 @@ + @include('laralum::layouts.pagination', ['paginator' => $roles])