We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 661a36d commit d9c4ddaCopy full SHA for d9c4dda
app/Models/Post.php
@@ -87,7 +87,7 @@ public static function boot()
87
$slug = Str::slug($post->title);
88
$i = 1;
89
90
- while (static::where('slug', $slug)->withTrashed()->exists()) {
+ while (static::where('slug', $slug)->exists()) {
91
$slug = Str::slug($post->title).'-'.$i++;
92
}
93
0 commit comments