Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update README.md #33

Merged
merged 1 commit into from
Nov 29, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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