trait Slugable

Methods

void
generateSlug(string $value)

Generate the slug.

static Collection
allFromSlugs(array $slugs)

Get the models from an array of slugs.

static Collection
exceptFromSlugs(array $slugs)

Get all models except the given array of slugs.

static bool
slugExists(string $slug)

Check if the slug already exists.

Details

at line 15
void generateSlug(string $value)

Generate the slug.

Parameters

string $value

Return Value

void

at line 32
static Collection allFromSlugs(array $slugs)

Get the models from an array of slugs.

Parameters

array $slugs

Return Value

Collection

at line 43
static Collection exceptFromSlugs(array $slugs)

Get all models except the given array of slugs.

Parameters

array $slugs

Return Value

Collection

at line 54
static bool slugExists(string $slug)

Check if the slug already exists.

Parameters

string $slug

Return Value

bool