You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$builder->table('users')
->get();
//or by column name$builder->table('users')
->get('name');
updateOrInsert()
$builder->table('users')
//The values in the first array exist in the database, and update it with the second array, but if not, it creates a new record in the database.
->updateOrInsert(
['name'=>'aa','surname'=>'bb'],
['username'=>'aa_new']
);
insertGetId()
$builder->table('users')
//Returns the last id of the inserted data.
->insertGetId([
'name'=>'aa','surname'=>'bb'
]);