iamchris / laravel-autocrud
A Laravel package to generate CRUD scaffolding inspire by Symfony's make:crud.
1.0.2
2025-03-19 14:11 UTC
Requires
- php: ^8 || ^9
- laravel/framework: ^11.0 || ^12.0
README
A Laravel package to generate CRUD scaffolding inspire by Symfony's make:crud.
Features
- Generates laravel controller, Blade, Route for CRUD operations (Index, Create, Edit, Show).
- Supports dynamic form generation based on the model's fillable fields.
- Easy to use with a single Artisan command.
Requirements
- PHP 8.1 or higher
- Laravel 11 or 12
Installation
- Install via Composer:
Run the following command in your Laravel project:
composer require iamchris/laravel-autocrud
Publish the Package Configuration (if applicable):
php artisan vendor:publish --provider="iamchris\LaravelCrud\LaravelCrudServiceProvider" --tag=laravel-autocrud-stubs
To generate CRUD scaffolding for a model, run:
php artisan make:crud ModelName
After running the make:crud command, the following will be generated:
Controller: App\Http\Controllers\ModelNameController
Views: resources/views/model-name/ (index, create, edit, show)
Routes: Resource routes in routes/web.php