| Install | |
|---|---|
composer require mwguerra/crud-artisan |
|
| Latest Version: | 0.0.1 |
| PHP: | ^7.3|^8.0 |
CRUD Artisan is a Laravel package designed to accelerate development by simplifying the creation of CRUD (Create, Read, Update, Delete) operations. With a series of intuitive Artisan commands, developers can generate models, controllers, views, and routes for their application's entities, focusing more on developing unique features rather than boilerplate code.
You can install the package via Composer. Run the following command in your Laravel project:
composer require mwguerra/crud-artisan
After installation, publish the package's configuration file to customize the templates and settings:
php artisan vendor:publish --provider="Mwguerra\CrudArtisan\CrudArtisanServiceProvider"
To create a complete CRUD for an entity, run:
php artisan make:crud NameOfYourEntity
This command will generate:
You can customize the templates used for generating views, models, and controllers by editing the published configuration file and the template files in the resources/views/vendor/crud-artisan directory.
The config/crud-artisan.php file allows you to define defaults and behaviors for the CRUD generation. You can specify namespaces, paths, and template specifics.
Contributions are welcome and will be fully credited. Please see CONTRIBUTING for details.
The CRUD Artisan package is open-sourced software licensed under the MIT license.
If you have any questions or encounter issues, please open an issue on the GitHub repository.