public static function bootSluggable()
    {
        static::saving(function (Model $model) {
            if (empty($model->getSlug())) {
                $model->setSlug(Str::slug($model->getSluggableString()));
            }
        });
    }
public static function bootSluggable()
    {
        static::saving(function (Model $model) {
            if (empty($model->getSlug())) {
                $model->setSlug(Str::slug($model->getSluggableString()));
            }
        });
    }
public static function bootSluggable ( ) { static :: saving ( function ( Model $ model ) { if ( empty ( $ model -> getSlug ( ) ) ) { $ model -> setSlug ( Str :: slug ( $ model -> getSluggableString ( ) ) ) ; } } ) ; }
Boot the sluggable trait for a model.

@return void
Boot the sluggable trait for a model .