Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
sharifzadesina authored Sep 4, 2020
1 parent 7d6a48f commit 3d5716b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ use Elegant\Sanitizer\Sanitizer;
$data = [
'name' => ' sina ',
'birthdate' => '06/25/1980',
'email' => 'shAriFZadeSina@gmail.com',
'email' => 'JOHn@DoE.com',
'json' => '{"name":"value"}',
];

$filters = [
'name' => 'trim|capitalize',
'birthdate' => 'trim|trim|format_date:"m/d/Y","F j, Y"',
'birthdate' => 'trim|format_date:"m/d/Y","F j, Y"',
'email' => ['trim', 'lowercase'],
'json' => 'cast:array',
];
Expand All @@ -40,6 +40,9 @@ Will result in:
``` php
[
'name' => 'Sina',
'birthdate' => 'June 25, 1980',
'email' => 'john@doe.com',
'jsom' => ['name' => 'value'],
];
```

Expand Down

0 comments on commit 3d5716b

Please sign in to comment.