protected function replacePaginationNumber(&$stub, $perPage) { $stub = str_replace('{{pagination}}', $perPage, $stub); return $this; }