<One sentence: what this Laravel app does.>
Stack
-
PHP <8.3+>, Laravel <12.x>, <MySQL PostgreSQL>, queues on -
Frontend: <Blade + Livewire Inertia + Vue/React>; tests: <Pest PHPUnit>
Commands
- Dev:
composer run dev<orphp artisan serve+npm run dev> - Tests:
php artisan test(one:php artisan test --filter=RefundTest) - Format:
./vendor/bin/pint - Static analysis:
<./vendor/bin/phpstan analyse> - Migrations:
php artisan make:migration <name>thenphp artisan migrate
Rules
- Validate with Form Requests; authorize with Policies (
$this->authorizeorcanmiddleware). - Use Eloquent relationships with eager loading (
with()); enableModel::preventLazyLoading()outside production to catch N+1. - Mass assignment: define
$fillableexplicitly. - Long work goes into queued jobs; jobs are idempotent.
- Config via
config()and.envonly through config files (never callenv()outsideconfig/, it breaks config caching). - Migrations are reversible (
down()implemented) unless documented.
Definition of done
php artisan test, Pint and static analysis pass.