scaffold-model
Installation
SKILL.md
Laravel Model Scaffold Skill
Use this skill to create or modify Eloquent Models.
Rules
1. Structure
- Strict Types: Always
declare(strict_types=1);. - Final: Models should be
finalunless they are explicitly designed for inheritance. - Fillable: Prefer
$fillableover$guardedfor explicit security.
2. Modern Casting (Laravel 12)
- Use the
casts(): arraymethod (Laravel 11+), NOT the$castsproperty. - Use Enums for status columns and native types.