laravel-coder

Generate Laravel 12 controllers, models, and migrations with Artisan commands.

10|3|Updated Mar 14, 2025
One-click install
npx skills add https://github.com/Mentor-Wizard/mentor-wizard-webapp --skill laravel-coder
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: laravel-coder
Source: https://github.com/Mentor-Wizard/mentor-wizard-webapp/tree/main/.claude/skills/laravel-coder
Command: npx skills add https://github.com/Mentor-Wizard/mentor-wizard-webapp --skill laravel-coder

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill streamlines the development of modern, maintainable Laravel applications by generating high-quality, performant, and secure code adhering to best practices and coding standards.

Core Features & Use Cases

  • Code Generation: Creates controllers, models, migrations, and other application components using Artisan commands.
  • Best Practices Enforcement: Ensures code adheres to strict typing, modern PHP features, Eloquent ORM conventions, and proper validation.
  • Use Case: Quickly scaffold a new feature by generating a model, its migration, and a controller with appropriate validation rules, following established Laravel conventions.

Quick Start

Use the laravel-coder skill to create a new model named 'Project' with a migration and factory.

Frequently Asked Questions about laravel-coder

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate Laravel controllers and models with strict typing and best practices?

To generate Laravel code with strict typing and best practices, you can scaffold controllers, models, and migrations using Artisan commands. This ensures the generated code adheres to modern PHP 8.4 features, Eloquent conventions, and proper validation rules.

What is the best way to scaffold a new Laravel feature with migrations and factories?

The best way to scaffold a new Laravel feature is by generating a model alongside its migration and factory simultaneously. This approach enforces established Laravel conventions, API resource generation, and maintainable application code structure.

Does this Laravel code generation approach support Laravel 12 and PHP 8.4 features?

Yes, this Laravel code generation approach explicitly requires adherence to Laravel 12 conventions and PHP 8.4 features. It ensures the generated application components maintain high performance, security, and modern coding standards.

How does Artisan command scaffolding enforce Eloquent ORM conventions?

Artisan command scaffolding enforces Eloquent ORM conventions by automatically applying strict typing and established Laravel patterns during code generation. This guarantees the created models and controllers follow secure and performant coding standards.

Can I use this to generate API resources and validation rules for my backend?

Yes, you can use this to generate API resources and validation rules for your backend. It scaffolds application components by enforcing strict typing and proper validation, ensuring secure and maintainable Laravel code.

What are the limitations when enforcing modern PHP features in Laravel code generation?

The primary limitation when enforcing modern PHP features in Laravel code generation is the strict requirement for Laravel 12 conventions and PHP 8.4 compatibility. Applications using older framework versions or legacy PHP features may not be supported.