piovezanfernando/laravel-api-vue-forge

Laravel API and Vue.js Code Generator - Database-first approach

Installs: 0

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 0

Forks: 0

Open Issues: 0

pkg:composer/piovezanfernando/laravel-api-vue-forge

0.0.1 2026-01-12 22:41 UTC

This package is auto-updated.

Last update: 2026-01-12 22:48:37 UTC


README

Laravel API and Vue.js Code Generator - Database-first approach.

Latest Stable Version Total Downloads License PHP Version Require

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

License

The MIT License (MIT). Please see License File for more information.