We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Got an issu here, base repository consists method paginate, and it's trying to get request function, which doesn't exist
Laravel version: Laravel Framework version 5.1.11 (LTS)
Error message:
FatalThrowableError in BaseRepository.php line 325: Fatal error: Call to undefined function Prettus\Repository\Eloquent\request()
Method:
public function paginate($limit = null, $columns = ['*'], $method = "paginate") { $this->applyCriteria(); $this->applyScope(); $limit = request()->get('perPage', is_null($limit) ? config('repository.pagination.limit', 15) : $limit); $results = $this->model->{$method}($limit, $columns); $results->appends(request()->query()); $this->resetModel(); return $this->parserResult($results); }
The text was updated successfully, but these errors were encountered:
#183
Sorry, something went wrong.
e67ad08
No branches or pull requests
Got an issu here, base repository consists method paginate, and it's trying to get request function, which doesn't exist
Laravel version: Laravel Framework version 5.1.11 (LTS)
Error message:
Method:
The text was updated successfully, but these errors were encountered: