abdulhamid-laravel-slug maintained by ahmetsabri
Description
simple laravel slugging package
Author
Last update
2023/07/08 14:52
(dev-main)
License
Downloads
9
Abdulhamid Laravel Search
A laravel package to slugg columns via your models .
installation :
composer require ahmetsabri/abdulhamid-laravel-slug
Usage :
- use
Sluggabletrait in your model - Define
$sluggableproperty in your model to select which columns to be slug
Example :
use Ahmetsabri\Abdulhamid\Searchable;
class Post extends Model {
use Sluggable ;
protected $sluggable = 'title';