← Laravel és React alapok csapata adatlapja

Skill · 1.0.0 verzió

Laravel-projekt feltérképezése

A tényleges Laravel-verziót és projektszerkezetet tárja fel API- és mintaválasztás előtt.

laravel-codebase-discovery

Ezt a skillt használó csapattagok

Nézd meg, miben segít

Mikor hasznos?

Akkor használd, ha ismeretlen alkalmazásban kezdesz vagy frissítési feltételezést ellenőrzöl.

Miben segít neked?

  • Kiolvassa a Composer-verziókat és tesztelési, formázási beállításokat.
  • Megkülönbözteti a meglévő alkalmazásvázat az újabb alapértelmezésektől.
  • Megismeri a szomszédos vezérlő-, modell- és policypéldákat.

Például ezt kérheted

Térképezd fel az ügyfélkezelést, telepített csomagokat és ellenőrző parancsokat új végpont javaslata előtt. Kövess meglévő ügyfélmódosítást útvonalon, kérésellenőrzésen, szabályon és műveleten át. Ezek alapján becsüld a végpontot és válaszd tesztjeit.

Részletes dokumentáció

Itt a skill eredeti útmutatóját, példáit és ellenőrzési szempontjait olvashatod az eredeti nyelven.

Részletek…Összecsukás

Laravel Codebase & Version Discovery

Verify the project's actual Laravel, PHP, package versions and structure before proposing or writing code.

1. Versions, packages and tooling

  • Read composer.json and composer.lock for the installed php constraint, laravel/framework version and first-party or ecosystem packages (Sanctum, Horizon, Cashier, Pennant,Octane, Reverb, Inertia, Livewire, Filament, Spatie packages).
  • Check composer.json scripts, phpunit.xml / phpunit.xml.dist, pest.php, pint.json, phpstan.neon* and rector.php to see how the project runs tests, formatting and static analysis.
  • When version-specific behavior is uncertain, inspect the installed source in vendor/laravel/framework or the official docs for that exact major version. Never assume a newer Laravel feature exists without checking.

2. Skeleton and lifecycle structure

  • Check whether the app uses the Laravel 11+ streamlined skeleton (bootstrap/app.php with Application::configure(), withRouting(), withMiddleware(), withExceptions(), bootstrap/providers.php, Console Commands auto-discovery in app/Console/Commands/ and schedules in routes/console.php) or the Laravel 10 structure (app/Http/Kernel.php, app/Console/Kernel.php, app/Exceptions/Handler.php).
  • An upgraded Laravel 11 or 12 app may intentionally keep its Laravel 10 Kernel and Handler classes. Follow the structure that actually exists in the repository.

3. Infer local conventions from sibling files

  • Read 2–3 sibling files in each directory you will touch (app/Models, app/Http/Controllers, app/Http/Requests, app/Policies, app/Jobs, tests/Feature) before creating or editing code.
  • Note how business logic is organized (thin controllers with Form Requests, Action classes, Services, Events/Jobs, or domain folders) and match it; do not introduce a new layer (such as a Repository or Service layer) unless the codebase already uses it or the task genuinely requires it.
  • Trace the full lifecycle for the affected path across HTTP requests, CLI commands and long-running queue workers, including how tenant or customer context is resolved in each environment.

Csomagban lévő fájlok 2

  • LICENSE.txt
  • SKILL.md