pacgen / crud-generator
生成带有视图、控制器和路由的 Laravel 模型 CRUD 操作。
v1.0
2024-09-22 17:28 UTC
Requires
- php: ^7.4 || ^8.0 || ^8.2 || ^8.3
- illuminate/http: ^8.0 | ^9.0 | ^10.0 | ^11.0
- illuminate/support: ^8.0 | ^9.0 | ^10.0 | ^11.0
- laravel/framework: ^8.0 || ^9.0 || ^10.0 || ^11.0
Requires (Dev)
- phpunit/phpunit: ^9.0 | ^10.0 | ^11.0
README
Laravel CRUD 生成器是一个简化生成 Laravel 应用程序 CRUD(创建、读取、更新、删除)操作的包。这将节省您大量时间,让您可以专注于开发中的重要事务。
安装
您可以通过 Composer 安装此包。
对于 Laravel 8.x 或更高版本
运行以下命令以引入此包
composer require pacgen/crud-generator ## To generate CRUD php artisan crud:generate ModelName This command will generate: A model with migration A controller with all resourceful methods Views (index, create, edit, show) Routes for the CRUD operations Configuration However, you can customize the generated views and controllers as needed for your application. also you need to manually import the Model class in the controller Contributing If you find this project helpful and want to support its development, you can donate via: - **[PayPal] email(andrewkhabweri@gmail.com)**: You can donate securely via PayPal. Your contributions will help in maintaining and improving this project. Thank you for your support! License The Laravel CRUD Generator is open-source software licensed under the MIT license.