laravel使用模型怎样获得最后一条插入的ID

来源:互联网 发布:行知教育集团 编辑:程序博客网 时间:2024/06/02 21:24

$user = User::create(['name' => 'abc']);

$id = $user->id;
阅读全文
0 0
原创粉丝点击