This project is the frontend base for the Laravel API Vue Forge generator.
It uses the Quasar Framework to provide a modern, responsive, and scalable user interface.
This repository is intended to be used as the foundation for automatically generated frontend applications that consume APIs generated by Laravel API Vue Forge.
Developed by Fernando Piovezan.
To use the frontend generator, we need the base project so that the generation occurs in the correct locations.
php artisan apiforge:setup-frontThe Vue 3 + Quasar project will be cloned to the directory specified in the configuration.
To generate a frontend scaffold for a specific model in your Laravel project, run the following Artisan command:
php artisan apiforge:front-quasar {ModelName} --fromTable --table={table_name}php artisan apiforge:front-quasar Post --fromTable --table=postsThis command will generate the frontend structure and components based on the given model and database table.
If you are developing or customizing this frontend base, follow the steps below.
npm install(Hot reload, error reporting, etc.)
npm run dev
# or
quasar devnpm run build
# or
quasar buildMake sure your Laravel project is configured to serve this frontend as a Single Page Application (SPA).
You can run the following command:
php artisan apiforge:setup-spaThis will configure the Laravel routes to properly serve the SPA frontend.