https://github.com/gv3n/laravel_crud_template_generator
The laravel_crud_template_generator package simplifies CRUD development in Laravel by generating boilerplate code for create, read, update, and delete operations, enhancing productivity and ensuring maintainable, scalable code following best practices.
https://github.com/gv3n/laravel_crud_template_generator
crud-generator laravel-package
Last synced: 3 months ago
JSON representation
The laravel_crud_template_generator package simplifies CRUD development in Laravel by generating boilerplate code for create, read, update, and delete operations, enhancing productivity and ensuring maintainable, scalable code following best practices.
- Host: GitHub
- URL: https://github.com/gv3n/laravel_crud_template_generator
- Owner: Gv3N
- Created: 2024-05-27T09:13:42.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-05-28T05:12:57.000Z (over 1 year ago)
- Last Synced: 2025-03-02T09:45:14.162Z (7 months ago)
- Topics: crud-generator, laravel-package
- Language: PHP
- Homepage:
- Size: 103 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Laravel CRUD Template Generator
[](https://packagist.org/packages/gv3n/laravel_crud_template_generator) [](https://packagist.org/packages/gv3n/laravel_crud_template_generator) [](https://packagist.org/packages/gv3n/laravel_crud_template_generator)A Laravel package to generate CRUD operations based on templates. Initially created for my personal use, it is now available for anyone to use and fork. Feel free to customize it to suit your needs and share your version with me. Contact me with any suggestions for improvements or to report any issues.
## Installation
You can install the package via Composer:composer require gv3n/laravel_crud_template_generator
## Requirements
- PHP ^8.0
- Laravel Support ^11.0## Usage
To use the CRUD template generator, follow these steps:
Run the following Artisan command:
php artisan make:crud {ModelName}
> Replace `{ModelName}` with the name of your model.
This command will generate the following files using stub templates:
- **Controller:** `Http/Controllers/{ModelName}Controller.php`
- **Model:** `Models/{ModelName}.php`
- **Views:**
- `views/{ModelName}/index.blade.php`
- `views/{ModelName}/create.blade.php`
- `views/{ModelName}/edit.blade.php`
- `views/{ModelName}/show.blade.php`
Additionally, the `web.php` route file will be updated with the following resource route:Route::resource("{ModelName}", '{ModelName}Controller');
By following these steps, you will have a skeleton for a functional CRUD interface for your model.
## Contributing
Contributions are welcome! Please feel free to submit a Pull Request on [GitHub](https://github.com/Gv3N/laravel_crud_template_generator).
## License
This package is open-sourced software licensed under the MIT license.
## Author
- Gv3N