Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

spatie sluggable not working

$model = EloquentModel:create(['name' => 'my name']); //slug is now "my-name";
$model->slug = 'my-custom-url';
$model->save(); //slug is now "my-custom-url";
Source by github.com #
 
PREVIOUS NEXT
Tagged: #spatie #sluggable #working
ADD COMMENT
Topic
Name
5+6 =