piovezanfernando/laravel-api-vue-forge
Composer 安装命令:
composer require piovezanfernando/laravel-api-vue-forge
包简介
Laravel API and Vue.js Code Generator - Database-first approach
关键字:
README 文档
README
Laravel API and Vue.js Code Generator - Database-first approach.
Generate high-quality APIs and Vue.js (Quasar) frontends directly from your existing database tables.
Features
- Database-first: Uses your existing database schema as the source of truth.
- RESTful API: Generates Controllers, Requests, Resources, and Routes.
- Service & Repository Patterns: Implements clean architecture by default.
- Vue.js + Quasar: Generates a complete frontend based on Quasar Framework.
- Automated Tests: Generates Pest/PHPUnit tests for your APIs and Repositories.
- Rollback Support: Easy rollback of generated files.
Installation
composer require piovezanfernando/laravel-api-vue-forge
Quick Start
1. Publish Configuration
php artisan apiforge:publish
2. Generate API from Table
php artisan apiforge:api Post --fromTable --table=posts
3. Generate Vue.js Frontend
php artisan apiforge:front-quasar Post
Available Commands
| Command | Description |
|---|---|
apiforge:api |
Generate API from a table |
apiforge:front-quasar |
Generate Quasar-based frontend |
apiforge:publish |
Publish configuration and base files |
apiforge:rollback |
Rollback generated files |
apiforge:migration |
Generate a migration from table (internal use) |
apiforge:model |
Generate a model from table |
apiforge:repository |
Generate a repository for a model |
Configuration
The configuration file is located at config/laravel_api_vue_forge.php.
Credits
- Fernando Piovezan
- Based on the original InfyOm Laravel Generator.
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-01-05