- PressRelease::scopeOwnedByApiUser() (bewusst eng: nur user_id-Autorschaft, anders als das breitere scopeAccessibleBy) ersetzt die byte-gleiche findOwnedPressRelease-Query in PressReleaseController + ImageController. - apiResourceRelations()-Helfer ersetzt den 5x identischen Eager-Load-Set (company/category.translations/images) in Index/Show/Create/Update/Reclassify. Bewusst NICHT umgesetzt: Slug-Reimplementierung (uniqueSlug) durch HasUniqueSlug ersetzen - der API-Fallback Str::random(8) weicht vom Trait-slugFallback() ab (Verhaltensaenderung bei leer-slugifizierten Titeln). Tests: neuer Scope-Test; volle Suite gruen (802 passed, 1 skipped). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| Feature | ||
| Unit | ||
| Pest.php | ||
| TestCase.php | ||