laravel项目

misterdebug/crud-generator-laravel 生成模型,控制器,视图文件

PHPer 2026-06-01 2 0 0

https://github.com/misterdebug/crud-generator-laravel

生成的模型和控制器都ok的,但是生成的视图文件太简单了。20260601

支持laravel12


安装

composer require mrdebug/crudgen --dev

1. Run the following composer command:

composer require mrdebug/crudgen --dev

2. If you don't use Laravel Collective Form package in your project, install it:

composer require rdx/laravelcollective-html

(Note: This step is not required if you don't need views.)

3. Publish the configuration file, stubs and the default-theme directory for views:

php artisan vendor:publish --provider="Mrdebug\Crudgen\CrudgenServiceProvider"

Usage

Create CRUD (or REST API)

Let's illustrate with a real life example : Building a blog

A Post has many (hasMany) Comment and belongs to many (belongsToMany) Tag

A Post can have a title and a content fields ...

立即注册
更新于:2026-06-01 19:03:12
    您需要登录后才可以评论。 立即注册
    推荐内容

    真枪实弹,假戏真做,12部具有“实干精神”的电影!

    怎样使用V2Ray代理和SSTap玩如魔兽世界/绝地求生/LOL台服/战地3/黑色沙漠/彩...

    sstap游戏代理教程 从此玩如魔兽世界/绝地求生/LOL台服/战地3/黑色沙漠/彩虹六...

    BT磁力搜索网站汇总和找不到的资源

    什么是磁力链接,您如何使用?

    Z-Library:全球最大的数字图书馆/含打不开的解决方案/镜像

    使用V2Ray的mKCP协议加速游戏

    v2rayN已停止工作