Skip to content

Commit

Permalink
Merge pull request #33 from Smailancer/patch-1
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
atmonshi committed Nov 29, 2023
2 parents c372629 + d6d2d55 commit 0a50fdc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ dump(ArPhpLaravel::guessGender('محمد')); // Male

#### Parse any Arabic textual datetime description into timestamp
``` php
dump(ArPhpLaravel::strtotime('الخميس القادم', time(), 'l dS F Y'))); // Thursday 13th May 2021
dump(ArPhpLaravel::strtotime('الخميس القادم', time(), 'l dS F Y')); // Thursday 13th May 2021
```

#### Arabic Sentiment Analysis
Expand Down Expand Up @@ -85,13 +85,13 @@ dump(ArPhpLaravel::translate('اهلا بالكل')); // Ahla Balkl
### Search with Eloquent and query Builder
Using search for arabic letters with Eloquent Builder
```php
Model::searchAr('content','فلسطين')->get();
Model::searchAr('فلسطين','content')->get();
```


you can use the same with Query Builder:
```php
DB::table('table_name')->searchAr('content','فلسطين')->get();
DB::table('table_name')->searchAr('فلسطين','content')->get();
```


Expand All @@ -106,7 +106,7 @@ and it will find result for any of the words:
you can also sort the results by using:
```php
DB::table('table_name')->orderAr('content','فلسطين')->get();
DB::table('table_name')->orderAr('فلسطين','content')->get();
```

## Used By
Expand Down

0 comments on commit 0a50fdc

Please sign in to comment.