From d6d2d5513d913b63a2d4205ce7eee83224429fa5 Mon Sep 17 00:00:00 2001 From: Smailancer Date: Wed, 29 Nov 2023 13:41:37 +0100 Subject: [PATCH] Update README.md Edit Documentation --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 7c97d63..4681e0f 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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(); ``` @@ -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