Nightjar\Slug\Slug::__construct
Apply extension with configurable defaults
Signature
public function __construct([string
$fieldToSlug = 'Title',
[string
$relationName = NULL,
[boolean
$enforceParity = false]]] )
Parameters
$fieldToSlug
—
string
- The field on the owner to base the URL Slug from - defaults to 'Title'
$relationName
—
string
- Optional name of the has_one relationship to the owner's parent class/Page
$enforceParity
—
boolean
- true to alter the URLSlug whenever the $fieldToSlug changes value (default: false)