Download the PHP package rolukja/vilt-crud-generator without Composer
On this page you can find all versions of the php package rolukja/vilt-crud-generator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download rolukja/vilt-crud-generator
More information about rolukja/vilt-crud-generator
Files in rolukja/vilt-crud-generator
Package vilt-crud-generator
Short Description A Composer package for automatically generating CRUD files for Laravel with Inertia.js and Vue.
License MIT
Informations about the package vilt-crud-generator
VILT CRUD Generator
The VILT CRUD Generator is a Laravel package that automatically generates CRUD structures (controllers, routes, Vue components) for your models. It leverages Inertia.js and Vue, saving you from repetitive tasks by setting up common CRUD functionalities for your application.
Installation
-
Install the package via Composer:
-
(Optional) Publish the configuration file and stubs:
- Install NPM dependencies:
Usage
- Create a model, for example
App\Models\Post. -
Run the generator:
The generator will analyze the model (and its database table) to automatically create:
- A controller (e.g.,
App\Http\Controllers\PostController) - Routes in
routes/web.php - Vue components (Index, Show, Form) in
resources/js/Pages/Post/
- A controller (e.g.,
Features
- Automatically reads and uses database schema information (field types, validations).
- Generates controllers, routes, and Vue files (Form, Index, Show).
- Supports customizable stubs, allowing you to publish and adapt them to your needs.
- Compatible with Laravel 11, Inertia.js, and Vue.
Testing
This package uses Pest for testing:
License
This package is open-sourced software licensed under the MIT License.