src/Concerns/CursorPagination.php
/**
     * Boot the cursor pagination trait for a model.
     *
     * @return void
     */
Boot the cursor pagination trait for a model.
@return void
Boot the cursor pagination trait for a model . @return void
public static function bootCursorPagination()
    {
        Builder::macro('cursorPaginate', function ($perPage = null, $orderBy = null) {
            return $this->getModel()->cursorPaginate($perPage, $orderBy);
        });
    }
public static function bootCursorPagination ( ) { Builder :: macro ( 'cursorPaginate' , function ( $ perPage = null , $ orderBy = null ) { return $ this -> getModel ( ) -> cursorPaginate ( $ perPage , $ orderBy ) ; } ) ; }
Boot the cursor pagination trait for a model.
Boot the cursor pagination trait for a model .