Skip to content
Back to skills

Forge Laravel Apps

ASecurity

Change Laravel apps: Eloquent, migrations, validation, authorization policies, queues and tests

  • 7 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 30, 2026
ai-agentsphpapi

Works with

  • api

Security analysis

A100/100

Scanned November 30, 2026

npx -y skills add ansh44233/forge --skill forge-laravel-apps --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Forge Laravel Apps?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Forge Laravel Apps
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ansh44233-forge-laravel-apps/badge)](https://www.skillsdirectory.com/skills/ansh44233-forge-laravel-apps)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: forge-laravel-apps
description: "Change Laravel apps: Eloquent, migrations, validation, authorization policies, queues and tests"
---

<!-- Generated from catalog/skills/laravel-apps/SKILL.md by scripts/build-plugin.ts. Edit the catalog, not this file. -->

# Laravel apps

Use in projects with `artisan` and `laravel/framework` in composer.json.

## Data
- Schema changes as migrations (`php artisan make:migration`); never edit applied migrations.
- Avoid N+1 with eager loading (`with()`); call `Model::preventLazyLoading()` outside production to surface it.
- Guard mass assignment with `$fillable`; never use `$guarded = []` on models filled from requests.
- Use query bindings; never put input into `DB::raw` or `whereRaw` without bindings.

## Requests
- Validate with Form Requests (`php artisan make:request`) and use `$request->validated()`.
- Authorize with policies (`$this->authorize('update', $post)`) for object-level access.
- Return API Resources rather than raw models so hidden attributes stay hidden.

## Queues and config
- Queued jobs must be idempotent; dispatch after commit (`afterCommit()`).
- Read config through `config()`, not `env()`, outside config files, so `config:cache` works.

## Verify
`php artisan test` (or `vendor/bin/pest` / `phpunit`), `vendor/bin/pint --test` or PHPStan/Larastan if configured.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.