Skip to content

Commit

Permalink
Added pagination
Browse files Browse the repository at this point in the history
  • Loading branch information
24aitor committed Apr 24, 2017
1 parent 813840e commit fc5e494
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Controllers/RoleController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)]);
}

/**
Expand Down
1 change: 1 addition & 0 deletions src/Views/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
</tbody>
</table>
</div>
@include('laralum::layouts.pagination', ['paginator' => $roles])
</div>
</div>
</div>
Expand Down

0 comments on commit fc5e494

Please sign in to comment.