Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
formatting
  • Loading branch information
Tucker-Eric committed Dec 24, 2019
1 parent 02055b3 commit 23132c2
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ Lets say we want to return a list of users filtered by multiple parameters. When

```php
[
'name' => 'er',
'last_name' => '',
'name' => 'er',
'last_name' => '',
'company_id' => '2',
'roles' => ['1','4','7'],
'industry' => '5'
'roles' => ['1','4','7'],
'industry' => '5'
]
```

Expand Down Expand Up @@ -258,8 +258,8 @@ To define methods for the following input:

```php
[
'company_id' => 5,
'name' => 'Tuck',
'company_id' => 5,
'name' => 'Tuck',
'mobile_phone' => '888555'
]
```
Expand Down Expand Up @@ -430,7 +430,7 @@ Input used to filter:

```php
$input = [
'industry' => '5',
'industry' => '5',
'potential_volume' => '10000'
];
```
Expand Down Expand Up @@ -544,7 +544,7 @@ class UserFilter extends ModelFilter
{
public $relations = [
'clients' => [
'client_industry' => 'industry',
'client_industry' => 'industry',
'client_potential' => 'potential_volume'
]
];
Expand All @@ -554,14 +554,14 @@ class UserFilter extends ModelFilter
The above will receive an array like:
```php
[
'client_industry' => 1,
'client_industry' => 1,
'client_potential' => 100000
]
```
And the `ClientFilter` will receive it as:
```php
[
'industry' => 1,
'industry' => 1,
'potential_volume' => 100000
]
```
Expand All @@ -574,11 +574,11 @@ If the following array is passed to the `filter()` method:

```php
[
'name' => 'er',
'last_name' => ''
'company_id' => 2,
'roles' => [1,4,7],
'industry' => 5,
'name' => 'er',
'last_name' => ''
'company_id' => 2,
'roles' => [1,4,7],
'industry' => 5,
'potential_volume' => '10000'
]
```
Expand Down

0 comments on commit 23132c2

Please sign in to comment.