piovezanfernando / laravel-api-vue-forge
Laravel API and Vue.js Code Generator - Database-first approach
Package info
github.com/piovezanfernando/laravel-api-vue-forge
pkg:composer/piovezanfernando/laravel-api-vue-forge
0.0.2
2026-03-31 20:17 UTC
Requires
- php: ^8.3.0
- illuminate/console: ^13.0
- illuminate/support: ^13.0
- laracasts/flash: ^3.2.2
- symfony/var-exporter: ^6.2.5|^7.0
Requires (Dev)
This package is auto-updated.
Last update: 2026-04-02 14:30:19 UTC
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. Setup Frontend (Optional but Recommended)
php artisan apiforge:setup-front
3. 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:setup-front |
Setup the frontend project by cloning the repository |
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.