Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
Airship
Engine
Bolt
Slug
PHP Trait Airship\Engine\Bolt\Slug
Put common methods for slug generation here.
Show file
Open project: paragonie/airship
Protected Methods
Method
Description
makeGenericSlug
(
string
$title
,
string
$table
,
string
$column
= 'slug' ) :
string
Make a generic slug for most tables
Method Details
makeGenericSlug()
protected
method
Make a generic slug for most tables
protected
makeGenericSlug
(
string
$title
,
string
$table
,
string
$column
= 'slug' ) :
string
$title
string
What are we basing the URL off of?
$table
string
Which table to check for duplicates?
$column
string
Which column to check for duplicates?
return
string