ribafs/crud-generator-laravel

Laravel CRUD 生成器

v1.1 2023-08-02 23:45 UTC

This package is auto-updated.

Last update: 2023-08-02 23:46:38 UTC


README

Build Status Total Downloads Latest Stable Version License

此生成器包提供了各种生成器,如 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

http://127.0.0.1:8000/posts

如果出现问题,请运行

php artisan route:list


## Documentation
Go through to the [detailed documentation](doc#readme

## API Documentation

[API](api-tutorial.md)

## Screencast

[![Screencast](http://img.youtube.com/vi/831-PFBsYfw/0.jpg)](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