Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

devondahon's avatar

Query builder and custom primary key

How to set my custom primary key (CUSTOMID) when using the following Query Builder request ?

$user = DB::table('users')->find(3);
0 likes
1 reply

Please or to participate in this conversation.