Laravel devs, modelKeys() is now available on the Eloquent query builder in Laravel 13.24. ๐Ÿ‘€

Instead of hardcoding pluck('id'), you can now call modelKeys().

A small quality-of-life improvement that automatically respects custom primary key names.
image

14

  • No matching results...
  • Searching...

/ 1000