Skip to main content

laravel_sluggable/
lib.rs

1//! Easy creation of slugs for your Laravel Rust models: a port of
2//! [cviebrock/eloquent-sluggable](https://github.com/cviebrock/eloquent-sluggable).
3//!
4//! Slugs are made by a port of [cocur/slugify](https://github.com/cocur/slugify) with its own
5//! transliteration rules, so they match the PHP package's. See the
6//! [README](https://github.com/rivervo/laravel-sluggable) for the guide.
7
8mod config;
9mod error;
10mod provider;
11mod rules;
12mod sluggable;
13mod slugify;
14
15pub use crate::config::{SlugMethod, SlugOptions, SluggableConfig, UniqueSuffix};
16pub use crate::error::InvalidSlugAttribute;
17pub use crate::provider::SluggableServiceProvider;
18pub use crate::sluggable::{
19    Slug, SlugColumn, SlugService, SlugSource, SlugSubject, Sluggable, SluggableScopeHelpers, SourceValue, creating,
20    updating,
21};
22pub use crate::slugify::{Slugify, SlugifyOptions};