generators-backend

Generate LaraJS backend code and API structure with Laravel Scribe documentation.

2|Updated Sep 30, 2024
One-click install
npx skills add https://github.com/maingocthanhtan96/larajs-docs --skill generators-backend
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: generators-backend
Source: https://github.com/maingocthanhtan96/larajs-docs/tree/main/.claude/skills/generators-backend
Command: npx skills add https://github.com/maingocthanhtan96/larajs-docs --skill generators-backend

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the generation of backend code for LaraJS applications, including API structures, file architecture, and language configurations, significantly speeding up development.

Core Features & Use Cases

  • Code Generation: Generates PHP code for controllers, services, repositories, models, migrations, factories, seeders, routes, and tests.
  • API Structure: Defines a clear monorepo-based API structure.
  • Language Support: Includes built-in support for multiple languages and allows easy addition of new ones.
  • API Documentation: Integrates with Laravel Scribe for automatic API documentation generation.
  • Use Case: Quickly scaffold a new resource (e.g., 'products') in your LaraJS backend, complete with all necessary files and boilerplate code.

Quick Start

Use the generators-backend skill to generate the backend code for a new 'products' resource.

Frequently Asked Questions about generators-backend

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

FAQPage Schema
How do I generate backend code and API structure for a new resource in Laravel?

To generate backend code and API structure for a new resource in Laravel, you can use a code generation tool to quickly scaffold controllers, services, repositories, models, and migrations. This automates the creation of necessary boilerplate files.

What is the best way to scaffold a complete Laravel backend with routes and tests?

Scaffolding a complete Laravel backend with routes and tests is best handled by automated code generation within a monorepo architecture. This approach instantly creates all required files, ensuring consistent structure and functionality across your application.

Does code generation work with a Laravel monorepo architecture?

Yes, backend code generation works seamlessly with a Laravel monorepo architecture. It defines a clear monorepo-based API structure, allowing you to organize controllers, services, and repositories effectively while maintaining scalable project boundaries.

Can I generate multi-language backend support and API documentation in Laravel?

You can generate multi-language backend support and API documentation in Laravel by utilizing built-in language configurations and integrating with Laravel Scribe. This allows easy addition of new languages and automatic API documentation generation.

What files are included when scaffolding a new API resource in a Laravel backend?

Scaffolding a new API resource in a Laravel backend includes generating PHP files for controllers, services, repositories, models, migrations, factories, seeders, routes, and tests. This provides a complete, ready-to-use implementation for your new resource.