SlugField
source($source)
Set the name of the field that the slug will automatically be generated from if not manually input.
This will default to 'name'.
TextField::make('title');
SlugField::make('slug')->source('title');
route($route)
Set the URL that the slug will be used in. This should include '%SLUG%' as a placeholder that will be replaced by the slug.
SlugField::make('slug')->route('http://example.com/%SLUG%')
SlugField::make('slug')->route(route('pages.show', '%SLUG%))
Notes
If a slug is not provided when saving the CRUD form it will be generated on the server side from the value in the source field.