From 23132c2cc1e45ce2c886d9f9fb0987e9df000ae1 Mon Sep 17 00:00:00 2001 From: Eric Tucker Date: Tue, 24 Dec 2019 13:09:32 -0800 Subject: [PATCH] Update README.md formatting --- README.md | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index 7f3d342..d65d760 100644 --- a/README.md +++ b/README.md @@ -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' ] ``` @@ -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' ] ``` @@ -430,7 +430,7 @@ Input used to filter: ```php $input = [ - 'industry' => '5', + 'industry' => '5', 'potential_volume' => '10000' ]; ``` @@ -544,7 +544,7 @@ class UserFilter extends ModelFilter { public $relations = [ 'clients' => [ - 'client_industry' => 'industry', + 'client_industry' => 'industry', 'client_potential' => 'potential_volume' ] ]; @@ -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 ] ``` @@ -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' ] ```