src/Providers/CursorPaginationServiceProvider.php
/**
     * Register the service provider.
     *
     * @return void
     */
Register the service provider.
@return void
Register the service provider . @return void
public function register()
    {
        CursorPaginator::beforeAfterResolver(function ($beforeKey = 'before', $afterKey = 'after') {
            return [
                'before' => $this->app['request']->input($beforeKey),
                'after' => $this->app['request']->input($afterKey),
            ];
        });
    }
public function register ( ) { CursorPaginator :: beforeAfterResolver ( function ( $ beforeKey = 'before' , $ afterKey = 'after' ) { return [ 'before' => $ this -> app [ 'request' ] -> input ( $ beforeKey ) , 'after' => $ this -> app [ 'request' ] -> input ( $ afterKey ) , ] ; } ) ; }
Register the service provider.
Register the service provider .