Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
agungsugiarto committed Aug 25, 2020
1 parent 7c38b48 commit 9325bcb
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# CodeIgniter4 Repository Pattern

[![Latest Stable Version](https://poser.pugx.org/agungsugiarto/codeigniter4-repository/v)](//packagist.org/packages/agungsugiarto/codeigniter4-repository)
[![Total Downloads](https://poser.pugx.org/agungsugiarto/codeigniter4-repository/downloads)](//packagist.org/packages/agungsugiarto/codeigniter4-repository)
[![Latest Unstable Version](https://poser.pugx.org/agungsugiarto/codeigniter4-repository/v/unstable)](//packagist.org/packages/agungsugiarto/codeigniter4-repository)
[![License](https://poser.pugx.org/agungsugiarto/codeigniter4-repository/license)](//packagist.org/packages/agungsugiarto/codeigniter4-repository)
[![Latest Stable Version](https://poser.pugx.org/agungsugiarto/codeigniter4-repository/v)](https://github.com/agungsugiarto/codeigniter4-repository/releases)
[![Total Downloads](https://poser.pugx.org/agungsugiarto/codeigniter4-repository/downloads)](https://packagist.org/packages/agungsugiarto/codeigniter4-repository)
[![Latest Unstable Version](https://poser.pugx.org/agungsugiarto/codeigniter4-repository/v/unstable)](https://packagist.org/packages/agungsugiarto/codeigniter4-repository)
[![License](https://poser.pugx.org/agungsugiarto/codeigniter4-repository/license)](https://packagist.org/packages/agungsugiarto/codeigniter4-repository)

## About
Implementation of repository pattern for CodeIgniter 4. The package allows out-of-the-box filtering of data based on parameters in the request, and also allows you to quickly integrate the list filters and custom criteria.
Expand Down Expand Up @@ -326,7 +326,7 @@ Search by searchables:
```php
public function index()
{
return $this->news->scope(service('request'))->get();
return $this->news->scope($this->request)->get();
}
```

Expand All @@ -348,7 +348,7 @@ protected $scopes = [
```

```php
$this->news->scope(service('request'))->get();
$this->news->scope($this->request)->get();
```

Enable ordering for specific fields by adding `$orderable` property to your model class:
Expand Down

0 comments on commit 9325bcb

Please sign in to comment.