当前位置:网站首页>Laravel admin obtains non auto increment ID and submits hidden forms
Laravel admin obtains non auto increment ID and submits hidden forms
2022-06-26 11:06:00 【siner. li】
stay laravel Get non auto increment in ID
Model Of $incrementing The default is true
When we use non self augmentation ID when , Will be used by default int
Add... To the model
public $incrementing = false;
The problem is solved
Non integer primary key , Need to add
protected $keyType = 'string';
Submit hidden form
// Set hidden fields
$form->ignore(['title']);
$form->saving(function () {
// Get all form information
$date = request()->all();
dd($date);
});
边栏推荐
- CentOS installs redis multi master multi slave cluster
- laravel 写原生SQL语句
- 机器学习深度神经网络——实验报告
- Is it safe to open an account in the school of Finance and business?
- Easyx----- C language implementation 2048
- Will updating a large amount of data in Oracle cause the undo space to explode
- ISO 26262之——2功能安全概念
- c语言 --- 运算符和表达式
- Work report (3)
- Tape library simple record 1
猜你喜欢

Flutter and native communication (Part 1)

Postman入门教程

What does ack attack mean? How to defend against ack attacks?

Query online users and forced withdrawal users based on oauth2

Opencv image processing - grayscale processing

02-Redis数据结构之链表
![[Beiyou orchard microprocessor design] 10 serial communication serial communication notes](/img/61/b4cfb0500bbe39ed6a371bb8672a2f.png)
[Beiyou orchard microprocessor design] 10 serial communication serial communication notes

代码规范 & 详细解释 husky、prettier、eslint、lint-staged 的作用和使用

How does unity prevent other camera positions and rotations from being controlled by steamvrplugin when using steamvrplugin

Fabric. JS upper dash, middle dash (strikethrough), underline
随机推荐
CentOS installs redis multi master multi slave cluster
指南针软件买股票进行交易安全吗?怎么开户买股票
Origin of b+ tree index
你好!正向代理!
9、 Beautify tables, forms, and hyperlinks
Nacos2.x.x start error creating bean with name 'grpcclusterserver';
ceph运维常用指令
laravel 写原生SQL语句
用同花顺手机炒股是安全的吗?如何用同花顺炒股
服务器单、双向可调一键互信脚本!
3、 Linked list exercise
Code specification & explain in detail the functions and uses of husky, prettier, eslint and lint staged
laravel-admin 非自增ID获取, 及提交隐藏表单
Sqli-labs靶场1-5
ACK攻击是什么意思?ACK攻击怎么防御?
02-Redis数据结构之链表
[work details] March 18, 2020
Easyx-----c语言实现2048
Huawei secoclient reports an error "accept return code timeout" [svn adapter v1.0 exclamation point]
PC QQ大廳 上傳更新 修改versionInfo