Skip to content

Latest commit

 

History

History
21 lines (18 loc) · 480 Bytes

README.md

File metadata and controls

21 lines (18 loc) · 480 Bytes

Laravel-Persian-Slug-Helper

Laravel Persian Slug Helper

how to use ?

  1. Copy Helpers.php to: \app\Http
  2. Then in your composer.json add Helpers.php file location we just copied to autoload, for register it:
    "autoload": { "files": [ "app/Http/Helpers.php" ], },
  3. Done.

For Example:

$title = 'تست @#$ شماره 123 aBCd';
$slug = Helpers::makeSlug($title);
/// $slug output is :
"تست-شماره-123-abcd"