📜  spatie sluggable 不工作 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:39.739000             🧑  作者: Mango

代码示例1
$model = EloquentModel:create(['name' => 'my name']); //slug is now "my-name";
$model->slug = 'my-custom-url';
$model->save(); //slug is now "my-custom-url";