use reserved slugs
CI/CD / test_and_check_app (push) Failing after 1m21s
CI/CD / Publish immutable image (push) Skipped
CI/CD / test_and_check_app (pull_request) Failing after 1m16s
CI/CD / Publish immutable image (pull_request) Skipped

This commit is contained in:
2026-09-19 15:10:03 +02:00
parent 14c7cc98bb
commit d4434446ec
4 changed files with 41 additions and 4 deletions
+27
View File
@@ -0,0 +1,27 @@
<?php
namespace App\Concerns;
trait ReservedSlugs
{
public function isReserved(string $slug): bool
{
return in_array($slug, $this->reservedSlugs());
}
public function reservedSlugs(): array
{
return [
'index',
'edit',
'update',
'create',
'store',
'delete',
'destroy',
'revoke',
'invite',
'accept',
];
}
}