$field->slug()
Converts the field content to a slug
$field->slug(): Field
Return type
This method does not modify the existing $field object but returns a new object with the changes applied. Learn more →
Examples
<?= $page->title()->slug() ?>
Converts the field content to a slug
$field->slug(): Field
This method does not modify the existing $field object but returns a new object with the changes applied. Learn more →
<?= $page->title()->slug() ?>