backend-laravel

Installation
SKILL.md

Backend - Laravel

When to use this skill

  • Creating APIs, controllers, routes, form requests, models, and migrations.
  • Implementing authentication/authorization, validation, queues, notifications, or mail.
  • Debugging performance, database queries, or request/response handling.

Quick start

  1. Install PHP deps: composer install.
  2. Env: copy .env.example -> .env; set APP_KEY via php artisan key:generate; configure DB and queue.
  3. Run migrations/seeders: php artisan migrate --seed (if seeders exist).
  4. Serve: php artisan serve or via Sail/Valet; tests: php artisan test; quality: composer lint if defined.

Project structure basics

  • Routes: routes/api.php for stateless APIs; routes/web.php for web routes with sessions.
  • Controllers: thin; push business logic into services/actions; type-hint dependencies for auto DI.
  • Form Requests: validate/authorize input; keep controllers lean.
  • Models and Eloquent: define fillable/guarded; relationships and scopes for query reuse.
  • Migrations/Seeders: keep schema in migrations; seed minimal fixtures for dev/test.
Installs
1
GitHub Stars
2
First Seen
Today
backend-laravel — kieutrongthien/skills-fullstack