This commit is contained in:
2025-04-07 12:16:11 +01:00
parent ce8b201a1c
commit e15a80163b
62 changed files with 149 additions and 131 deletions

View File

@@ -45,8 +45,9 @@ class Organisation extends Model
$slug = Str::slug($name);
$count = 2;
while (Organisation::where('slug', $slug)->exists()) {
$slug = Str::slug($name) . '-' . $count++;
$slug = Str::slug($name).'-'.$count++;
}
return $slug;
}
}