Pharaonic
Loading...

Configurations

# Publish config

You can publish the configuration.

1php artisan vendor:publish --tag=laravel-sluggable

# Options

You can find the file here : config/Pharaonic/sluggable.php.

1return [
2 'unique' => true,
3 'onCreate' => true,
4 'onUpdate' => true
5];

# unique

Keep the slug unique over the table of the database.

# onCreate

Generate slug on model creation.

# onUpdate

Generate slug on model updating.