当前位置:网站首页>Laravel generate entity
Laravel generate entity
2022-07-05 13:43:00 【Php_ XiaoZhi】
One 、 Generate by command User Model class
php artisan make:model Http/Models/User
If the table name is user, You need to set the mandatory table name to user, Otherwise, it will access by default users surface
protected $table = 'user';?
Two 、 Install the model class code prompt plug-in
Install the model class code prompt plug-in plug-in
composer require barryvdh/laravel-ide-helper
Generate comments for the data model
php artisan ide-helper:models Generate all
php artisan ide-helper:models "App\Models\User" Generate single
by Facades Generate annotations
php artisan ide-helper:generate
3、 ... and 、 test
User::where()->get();
It's normal .
边栏推荐
- 一文详解ASCII码,Unicode与utf-8
- Basic characteristics and isolation level of transactions
- Clock cycle
- Scientific running robot pancakeswap clip robot latest detailed tutorial
- stm32逆向入门
- [public class preview]: basis and practice of video quality evaluation
- Talk about seven ways to realize asynchronous programming
- 【华南理工大学】考研初试复试资料分享
- web3.eth. Filter related
- "Baidu Cup" CTF competition in September, web:sql
猜你喜欢
Flutter draws animation effects of wave movement, curves and line graphs
Intranet penetration tool NetApp
Laravel framework operation error: no application encryption key has been specified
zabbix 监控
Win10 - lightweight gadget
The "Baidu Cup" CTF competition was held in February 2017, Web: explosion-2
Wonderful express | Tencent cloud database June issue
Jetpack Compose入门到精通
FPGA 学习笔记:Vivado 2019.1 添加 IP MicroBlaze
Redis6 master-slave replication and clustering
随机推荐
Shandong University Summer Training - 20220620
ELK 企业级日志分析系统
Intranet penetration tool NetApp
Mmseg - Mutli view time series data inspection and visualization
通讯录(链表实现)
华为推送服务内容,阅读笔记
如何把大的‘tar‘存档文件分割成特定大小的多个文件
kafaka 日志收集
今年上半年,通信行业发生了哪些事?
【华南理工大学】考研初试复试资料分享
Idea remote debugging agent
redis6主从复制及集群
一网打尽异步神器CompletableFuture
Idea set method annotation and class annotation
MySQL --- 数据库查询 - 排序查询、分页查询
[MySQL usage Script] catch all MySQL time and date types and related operation functions (3)
stm32逆向入门
go map
mysql获得时间
leetcode 10. Regular expression matching regular expression matching (difficult)