|-原 Laravel-Backpack/CRUD,一条命令生成对应模型的后台管理页面
https://github.com/Laravel-Backpack/CRUD
首次安装后,访问后台,如果页面引入的静态资源没有加载到,运行
php artisan storage:link
一条命令
php artisan backpack:crud user
就生成了对应模型的后台管理页面,添加新用户的时候,如果是已经用了的email,会直接报错,前端代码没有去判断email唯一。
技术栈: Bootstrap 5 + Blade + CoreUI
特点: 自 2016 年发布,经过 8 年生产环境验证。核心 CRUD 包免费 (MIT),提供 50+ 字段类型、20+ 列类型。支持 Laravel 10+。
许可: 核心免费,部分高级插件需商业许可
D:\www\test\laravel13>php artisan storage:link
INFO The [D:\www\test\laravel13\public\storage] link has been connected to [D:\www\test\laravel13\storage\app/public].
D:\www\test\laravel13>php artisan basset:check...
|-原 misterdebug/crud-generator-laravel 生成模型,控制器,视图文件
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 ...