{"id":2396,"date":"2025-07-12T05:50:14","date_gmt":"2025-07-12T05:50:14","guid":{"rendered":"https:\/\/itnotes.apjsoftwares.in\/?p=2396"},"modified":"2025-07-12T05:50:14","modified_gmt":"2025-07-12T05:50:14","slug":"what-is-the-difference-between-get-and-first-in-laravel","status":"publish","type":"post","link":"https:\/\/itnotes.apjsoftwares.in\/index.php\/2025\/07\/12\/what-is-the-difference-between-get-and-first-in-laravel\/","title":{"rendered":"What is the difference between get() and first() in Laravel?"},"content":{"rendered":"\n<p><strong>English:<\/strong> get() returns a collection of records. first() returns only the first matching record.<\/p>\n\n\n\n<p><strong>Hindi:<\/strong> get() saari matching records return karta hai. first() sirf pehla record return karta hai.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>English: get() returns a collection of records. first() returns only the first matching record. Hindi:&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[36],"tags":[],"_links":{"self":[{"href":"https:\/\/itnotes.apjsoftwares.in\/index.php\/wp-json\/wp\/v2\/posts\/2396"}],"collection":[{"href":"https:\/\/itnotes.apjsoftwares.in\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itnotes.apjsoftwares.in\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/itnotes.apjsoftwares.in\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/itnotes.apjsoftwares.in\/index.php\/wp-json\/wp\/v2\/comments?post=2396"}],"version-history":[{"count":1,"href":"https:\/\/itnotes.apjsoftwares.in\/index.php\/wp-json\/wp\/v2\/posts\/2396\/revisions"}],"predecessor-version":[{"id":2397,"href":"https:\/\/itnotes.apjsoftwares.in\/index.php\/wp-json\/wp\/v2\/posts\/2396\/revisions\/2397"}],"wp:attachment":[{"href":"https:\/\/itnotes.apjsoftwares.in\/index.php\/wp-json\/wp\/v2\/media?parent=2396"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itnotes.apjsoftwares.in\/index.php\/wp-json\/wp\/v2\/categories?post=2396"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itnotes.apjsoftwares.in\/index.php\/wp-json\/wp\/v2\/tags?post=2396"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}