Skip to content

arashmehrani/Laravel-Persian-Slug-Helper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

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"

About

Laravel Persian Slug Helper

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages