Skip to content

mahdimirhendi/eluquent-sluggable-persian

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

eluquent-sluggable-persian

Laravel Eloquent sluggable for persian & arabic labguages

##installation

  1. install eloquent sluggable
  2. run php artisan config:publish cviebrock/eloquent-sluggable in command-line
  3. replace app/config/packages/cviebrock/eluqnt-sluggable/config.php with config.php

##usage

  for($i=0;$i<3;$i++)
  {
    $post = new Post(array('title'=>'عنوان پست آزمایشی'));
    $post->save();
  }
  
  
    

####output

  http://example.com/post/عنوان-پست-آزمایشی
  http://example.com/post/عنوان-پست-آزمایشی-1
  http://example.com/post/عنوان-پست-آزمایشی-2

About

Laravel Eloquent sluggable for persian & arabic labguages

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%