ribafs / crud-generator-laravel
Laravel CRUD 生成器
v1.1
2023-08-02 23:45 UTC
Requires
- php: >=5.6.4|>=7.0|^8.0
- illuminate/support: ^5.3|^6.0|^7.0|^8.0|^9.0
- laravelcollective/html: ^5.3|^6.0|^7.0
Requires (Dev)
- mockery/mockery: ^1.0
- orchestra/testbench: ^3.3|^4.0|^5.0
- phpunit/phpunit: ^5.7|^8.0|^9.0
This package is auto-updated.
Last update: 2023-08-02 23:46:38 UTC
README
此生成器包提供了各种生成器,如 CRUD、API、控制器、模型、迁移、视图,以帮助您轻松开发应用程序。
要求
Laravel >= 5.3
PHP >= 5.6.4
在 Laravel 10 上安装
composer require ribafs/crud-generator-laravel --dev
php artisan vendor:publish --provider="Appzcoder\CrudGenerator\CrudGeneratorServiceProvider"
示例
php artisan crud:generate Posts --fields='title#string; email#string;' --controller-namespace=App\Http\Controllers --form-helper=html
调整 /routes/web 中的路由
Route::resource('admin/products', 'App\Http\Controllers\Admin\ProductsController');
php artisan route:clear
php artisan serve
如果出现问题,请运行
php artisan route:list
## Documentation
Go through to the [detailed documentation](doc#readme
## API Documentation
[API](api-tutorial.md)
## Screencast
[](https://www.youtube.com/watch?v=K2G3kMQtY5Y)
#### If you're still looking for easier one then try this [Admin Panel](https://github.com/appzcoder/laravel-admin)
## Author
[Sohel Amin](http://sohelamin.com) :email: [Email Me](mailto:sohelamincse@gmail.com)
## License
This project is licensed under the MIT License - see the [License File](LICENSE) for details