App\Modules\Users\Controllers\Admin\Roles::index PHP Method

index() public method

public index ( )
    public function index()
    {
        // Get all Role records for current page.
        $roles = Role::with('users')->paginate(25);
        return $this->getView()->shares('title', __d('users', 'Roles'))->with('roles', $roles);
    }