{"id":49862,"date":"2022-03-09T04:54:38","date_gmt":"2022-03-09T04:54:38","guid":{"rendered":"https:\/\/www.bridge-global.com\/blog\/?p=49862"},"modified":"2022-03-09T04:54:39","modified_gmt":"2022-03-09T04:54:39","slug":"laravel-version-9-2-released","status":"publish","type":"post","link":"https:\/\/www.bridge-global.com\/blog\/laravel-version-9-2-released\/","title":{"rendered":"Laravel Version 9.2 Released &#8211; What All Are New?"},"content":{"rendered":"<div class=\"vce-row-container\" data-vce-boxed-width=\"true\"><div class=\"vce-row vce-row--col-gap-30 vce-row-equal-height vce-row-content--top\" id=\"el-732793d6\" data-vce-do-apply=\"all el-732793d6\"><div class=\"vce-row-content\" data-vce-element-content=\"true\"><div class=\"vce-col vce-col--md-auto vce-col--xs-1 vce-col--xs-last vce-col--xs-first vce-col--sm-last vce-col--sm-first vce-col--md-last vce-col--lg-last vce-col--xl-last vce-col--md-first vce-col--lg-first vce-col--xl-first\" id=\"el-98da8042\"><div class=\"vce-col-inner\" data-vce-do-apply=\"border margin background  el-98da8042\"><div class=\"vce-col-content\" data-vce-element-content=\"true\" data-vce-do-apply=\"padding el-98da8042\"><div class=\"vce-text-block\"><div class=\"vce-text-block-wrapper vce\" id=\"el-133b51d0\" data-vce-do-apply=\"all el-133b51d0\"><p>Laravel 9.2 is the new version of the framework that was recently released with several updates that favor developers. Laravel is a PHP-based web framework that uses substantial and elegant syntaxes to develop high-end online applications.<\/p>\n<p>The Laravel package includes a powerful set of tools as well as application architecture which is a boon to any <a href=\"..\/\" target=\"_blank\" rel=\"noopener\">seasoned custom software development company<\/a>. Furthermore, it incorporates many aspects of technologies like ASP.NET MVC, CodeIgniter, Ruby on Rails, and many others that aid in Laravel development.<\/p>\n<p>This framework is free and open source. It aids developers by saving significant time and reducing the amount of thought and preparation required to create a whole website from scratch.&nbsp;<\/p>\n<p>And we\u2019ll be exploring more about the newer version - Laravel 9.2 through this blog. Let\u2019s get on with it.<\/p><\/div><\/div><\/div><\/div><\/div><\/div><\/div><\/div><div class=\"vce-row-container\" data-vce-boxed-width=\"true\"><div class=\"vce-row vce-row--col-gap-30 vce-row-equal-height vce-row-content--top\" id=\"el-c69c7721\" data-vce-do-apply=\"all el-c69c7721\"><div class=\"vce-row-content\" data-vce-element-content=\"true\"><div class=\"vce-col vce-col--md-auto vce-col--xs-1 vce-col--xs-last vce-col--xs-first vce-col--sm-last vce-col--sm-first vce-col--md-last vce-col--lg-last vce-col--xl-last vce-col--md-first vce-col--lg-first vce-col--xl-first\" id=\"el-1d7833fd\"><div class=\"vce-col-inner\" data-vce-do-apply=\"border margin background  el-1d7833fd\"><div class=\"vce-col-content\" data-vce-element-content=\"true\" data-vce-do-apply=\"padding el-1d7833fd\"><div class=\"vce-text-block\"><div class=\"vce-text-block-wrapper vce\" id=\"el-cdb8e8cb\" data-vce-do-apply=\"all el-cdb8e8cb\"><h2>A Brief on Laravel<\/h2><\/div><\/div><\/div><\/div><\/div><\/div><\/div><\/div><div class=\"vce-row-container\" data-vce-boxed-width=\"true\"><div class=\"vce-row vce-row--col-gap-30 vce-row-equal-height vce-row-content--top\" id=\"el-a94192f0\" data-vce-do-apply=\"all el-a94192f0\"><div class=\"vce-row-content\" data-vce-element-content=\"true\"><div class=\"vce-col vce-col--md-auto vce-col--xs-1 vce-col--xs-last vce-col--xs-first vce-col--sm-last vce-col--sm-first vce-col--md-last vce-col--lg-last vce-col--xl-last vce-col--md-first vce-col--lg-first vce-col--xl-first\" id=\"el-475cadcc\"><div class=\"vce-col-inner\" data-vce-do-apply=\"border margin background  el-475cadcc\"><div class=\"vce-col-content\" data-vce-element-content=\"true\" data-vce-do-apply=\"padding el-475cadcc\"><div class=\"vce-text-block\"><div class=\"vce-text-block-wrapper vce\" id=\"el-a5ffe1b0\" data-vce-do-apply=\"all el-a5ffe1b0\"><p>Laravel is a web application framework that features expressive, elegant syntax. It transforms development into a joyful and creative activity that is extremely rewarding. The Laravel package aims to make development easier by simplifying typical activities performed in the majority of online applications, such as authentication, routing, sessions, and caching.<\/p><p>Laravel promises to make the development process more enjoyable for developers while maintaining application functionality. It tries to incorporate the top features of existing web frameworks for an effective Laravel development process. Frameworks written in other languages, such as Ruby on Rails, ASP.NET MVC, and Sinatra, are examples of this.<\/p><p>Laravel is simple to use while still giving the sophisticated features required for big, comprehensive applications. A fantastic inversion of control container, expressive migration system, and tightly integrated unit testing support provide you with the tools you need to develop any application with which you are assigned.<\/p><\/div><\/div><\/div><\/div><\/div><\/div><\/div><\/div><div class=\"vce-row-container\" data-vce-boxed-width=\"true\"><div class=\"vce-row vce-row--col-gap-30 vce-row-equal-height vce-row-content--top\" id=\"el-1c1485f0\" data-vce-do-apply=\"all el-1c1485f0\"><div class=\"vce-row-content\" data-vce-element-content=\"true\"><div class=\"vce-col vce-col--md-auto vce-col--xs-1 vce-col--xs-last vce-col--xs-first vce-col--sm-last vce-col--sm-first vce-col--md-last vce-col--lg-last vce-col--xl-last vce-col--md-first vce-col--lg-first vce-col--xl-first\" id=\"el-f4ea9aeb\"><div class=\"vce-col-inner\" data-vce-do-apply=\"border margin background  el-f4ea9aeb\"><div class=\"vce-col-content\" data-vce-element-content=\"true\" data-vce-do-apply=\"padding el-f4ea9aeb\"><div class=\"vce-text-block\"><div class=\"vce-text-block-wrapper vce\" id=\"el-e4494846\" data-vce-do-apply=\"all el-e4494846\"><h2>The Shift in Laravel Version Releases<\/h2><\/div><\/div><\/div><\/div><\/div><\/div><\/div><\/div><div class=\"vce-row-container\" data-vce-boxed-width=\"true\"><div class=\"vce-row vce-row--col-gap-30 vce-row-equal-height vce-row-content--top\" id=\"el-2291afc4\" data-vce-do-apply=\"all el-2291afc4\"><div class=\"vce-row-content\" data-vce-element-content=\"true\"><div class=\"vce-col vce-col--md-auto vce-col--xs-1 vce-col--xs-last vce-col--xs-first vce-col--sm-last vce-col--sm-first vce-col--md-last vce-col--lg-last vce-col--xl-last vce-col--md-first vce-col--lg-first vce-col--xl-first\" id=\"el-1ea72af7\"><div class=\"vce-col-inner\" data-vce-do-apply=\"border margin background  el-1ea72af7\"><div class=\"vce-col-content\" data-vce-element-content=\"true\" data-vce-do-apply=\"padding el-1ea72af7\"><div class=\"vce-text-block\"><div class=\"vce-text-block-wrapper vce\" id=\"el-40c8757a\" data-vce-do-apply=\"all el-40c8757a\"><p>With the release of Laravel 8, Laravel shifted to annual releases. Before this, major versions were issued every six months. This transformation is meant to reduce the Laravel development community's maintenance load while also challenging the development team to launch great, powerful new features while avoiding breaking updates.<\/p><p>Hence, a range of significant enhancements to Laravel 8 was introduced while maintaining backwards compatibility, such as parallel testing support, better Breeze starting kits, HTTP client improvements, and even new Eloquent relationship types like \"has one of many\"<\/p><p>As a result of this dedication to shipping significant new features in the current Laravel package release, future \"major\" releases will most likely be largely utilized for \"maintenance\" chores. This could mean updating upstream dependencies (as seen by the release notes).<\/p><p>Laravel 9 builds on Laravel 8.x by adding support for Symfony 6.0 components, Symfony Mailer, Flysystem 3.0, improved route:list output, a Laravel Scout database driver, new Eloquent accessor \/ mutator syntax, implicit route bindings via Enums, and diverse other bug fixes and usability enhancements.<\/p><\/div><\/div><\/div><\/div><\/div><\/div><\/div><\/div><div class=\"vce-row-container\" data-vce-boxed-width=\"true\"><div class=\"vce-row vce-row--col-gap-30 vce-row-equal-height vce-row-content--top\" id=\"el-5efa2072\" data-vce-do-apply=\"all el-5efa2072\"><div class=\"vce-row-content\" data-vce-element-content=\"true\"><div class=\"vce-col vce-col--md-auto vce-col--xs-1 vce-col--xs-last vce-col--xs-first vce-col--sm-last vce-col--sm-first vce-col--md-last vce-col--lg-last vce-col--xl-last vce-col--md-first vce-col--lg-first vce-col--xl-first\" id=\"el-d166938a\"><div class=\"vce-col-inner\" data-vce-do-apply=\"border margin background  el-d166938a\"><div class=\"vce-col-content\" data-vce-element-content=\"true\" data-vce-do-apply=\"padding el-d166938a\"><div class=\"vce-text-block\"><div class=\"vce-text-block-wrapper vce\" id=\"el-fdad323a\" data-vce-do-apply=\"all el-fdad323a\"><h2>Laravel 9.2<\/h2><\/div><\/div><\/div><\/div><\/div><\/div><\/div><\/div><div class=\"vce-row-container\" data-vce-boxed-width=\"true\"><div class=\"vce-row vce-row--col-gap-30 vce-row-equal-height vce-row-content--top\" id=\"el-24c2e2bb\" data-vce-do-apply=\"all el-24c2e2bb\"><div class=\"vce-row-content\" data-vce-element-content=\"true\"><div class=\"vce-col vce-col--md-auto vce-col--xs-1 vce-col--xs-last vce-col--xs-first vce-col--sm-last vce-col--sm-first vce-col--md-last vce-col--lg-last vce-col--xl-last vce-col--md-first vce-col--lg-first vce-col--xl-first\" id=\"el-6d7e5106\"><div class=\"vce-col-inner\" data-vce-do-apply=\"border margin background  el-6d7e5106\"><div class=\"vce-col-content\" data-vce-element-content=\"true\" data-vce-do-apply=\"padding el-6d7e5106\"><div class=\"vce-text-block\"><div class=\"vce-text-block-wrapper vce\" id=\"el-ce9b032f\" data-vce-do-apply=\"all el-ce9b032f\"><p>The Laravel team published version 9.2.0, which includes an array keyBy function, an Eloquent attribute static constructor, and the integration of the Laravel CORS package into the framework, among many other things:<\/p><\/div><\/div><\/div><\/div><\/div><\/div><\/div><\/div><div class=\"vce-row-container\" data-vce-boxed-width=\"true\"><div class=\"vce-row vce-row--col-gap-30 vce-row-equal-height vce-row-content--top\" id=\"el-f4da89c7\" data-vce-do-apply=\"all el-f4da89c7\"><div class=\"vce-row-content\" data-vce-element-content=\"true\"><div class=\"vce-col vce-col--md-auto vce-col--xs-1 vce-col--xs-last vce-col--xs-first vce-col--sm-last vce-col--sm-first vce-col--md-last vce-col--lg-last vce-col--xl-last vce-col--md-first vce-col--lg-first vce-col--xl-first\" id=\"el-68e22469\"><div class=\"vce-col-inner\" data-vce-do-apply=\"border margin background  el-68e22469\"><div class=\"vce-col-content\" data-vce-element-content=\"true\" data-vce-do-apply=\"padding el-68e22469\"><div class=\"vce-text-block\"><div class=\"vce-text-block-wrapper vce\" id=\"el-059dfe7b\" data-vce-do-apply=\"all el-059dfe7b\"><h3>1. Attribute Make Method<\/h3>\n<p>A static constructor function to the Eloquent Attribute class, which gives the following convenience for Laravel development:<\/p><\/div><\/div><\/div><\/div><\/div><\/div><\/div><\/div><div class=\"vce-row-container\" data-vce-boxed-width=\"true\"><div class=\"vce-row vce-row--col-gap-30 vce-row-equal-height vce-row-content--top\" id=\"el-9adf4dc3\" data-vce-do-apply=\"all el-9adf4dc3\"><div class=\"vce-row-content\" data-vce-element-content=\"true\"><div class=\"vce-col vce-col--md-auto vce-col--xs-1 vce-col--xs-last vce-col--xs-first vce-col--sm-last vce-col--sm-first vce-col--md-last vce-col--lg-last vce-col--xl-last vce-col--md-first vce-col--lg-first vce-col--xl-first\" id=\"el-d2c1c3fd\"><div class=\"vce-col-inner\" data-vce-do-apply=\"border margin background  el-d2c1c3fd\"><div class=\"vce-col-content\" data-vce-element-content=\"true\" data-vce-do-apply=\"padding el-d2c1c3fd\"><div class=\"vce-single-image-container vce-single-image--align-center\"><div class=\"vce vce-single-image-wrapper\" id=\"el-1677529e\" data-vce-do-apply=\"all el-1677529e\"><figure><div class=\"vce-single-image-inner vce-single-image--absolute\" style=\"padding-bottom: 72.9295%; width: 809px;\"><img loading=\"lazy\" decoding=\"async\" class=\"vce-single-image vcv-lozad\" data-src=\"https:\/\/www.bridge-global.com\/blog\/wp-content\/uploads\/2022\/03\/Laravel-Version-9.2-Released-Attribute-Make-MEthod-e1646797959932.jpg\" width=\"809\" height=\"590\" src=\"\" data-img-src=\"https:\/\/www.bridge-global.com\/blog\/wp-content\/uploads\/2022\/03\/Laravel-Version-9.2-Released-Attribute-Make-MEthod-e1646797959932.jpg\" alt=\"Laravel Version 9.2 Released-Attribute Make MEthod\" title=\"Laravel Version 9.2 Released-Attribute Make MEthod\" \/><noscript>\n        <img loading=\"lazy\" decoding=\"async\" class=\"vce-single-image\" src=\"https:\/\/www.bridge-global.com\/blog\/wp-content\/uploads\/2022\/03\/Laravel-Version-9.2-Released-Attribute-Make-MEthod-e1646797959932.jpg\" width=\"809\" height=\"590\" alt=\"Laravel Version 9.2 Released-Attribute Make MEthod\" title=\"Laravel Version 9.2 Released-Attribute Make MEthod\" \/>\n      <\/noscript><\/div><figcaption hidden=\"\"><\/figcaption><\/figure><\/div><\/div><\/div><\/div><\/div><\/div><\/div><\/div><div class=\"vce-row-container\" data-vce-boxed-width=\"true\"><div class=\"vce-row vce-row--col-gap-30 vce-row-equal-height vce-row-content--top\" id=\"el-d514e57b\" data-vce-do-apply=\"all el-d514e57b\"><div class=\"vce-row-content\" data-vce-element-content=\"true\"><div class=\"vce-col vce-col--md-auto vce-col--xs-1 vce-col--xs-last vce-col--xs-first vce-col--sm-last vce-col--sm-first vce-col--md-last vce-col--lg-last vce-col--xl-last vce-col--md-first vce-col--lg-first vce-col--xl-first\" id=\"el-21309bd3\"><div class=\"vce-col-inner\" data-vce-do-apply=\"border margin background  el-21309bd3\"><div class=\"vce-col-content\" data-vce-element-content=\"true\" data-vce-do-apply=\"padding el-21309bd3\"><div class=\"vce-text-block\"><div class=\"vce-text-block-wrapper vce\" id=\"el-908850df\" data-vce-do-apply=\"all el-908850df\"><h2>2. Array keyBy Method<\/h2><p>An Arr::keyBy() method that functions similarly to the collection keyBy() method was added to Laravel 9.2:<\/p><\/div><\/div><\/div><\/div><\/div><\/div><\/div><\/div><div class=\"vce-row-container\" data-vce-boxed-width=\"true\"><div class=\"vce-row vce-row--col-gap-30 vce-row-equal-height vce-row-content--top\" id=\"el-f5486d3e\" data-vce-do-apply=\"all el-f5486d3e\"><div class=\"vce-row-content\" data-vce-element-content=\"true\"><div class=\"vce-col vce-col--md-auto vce-col--xs-1 vce-col--xs-last vce-col--xs-first vce-col--sm-last vce-col--sm-first vce-col--md-last vce-col--lg-last vce-col--xl-last vce-col--md-first vce-col--lg-first vce-col--xl-first\" id=\"el-fb1d5a79\"><div class=\"vce-col-inner\" data-vce-do-apply=\"border margin background  el-fb1d5a79\"><div class=\"vce-col-content\" data-vce-element-content=\"true\" data-vce-do-apply=\"padding el-fb1d5a79\"><div class=\"vce-single-image-container vce-single-image--align-center\"><div class=\"vce vce-single-image-wrapper\" id=\"el-c9d4ef8a\" data-vce-do-apply=\"all el-c9d4ef8a\"><figure><div class=\"vce-single-image-inner vce-single-image--absolute\" style=\"padding-bottom: 48.9258%; width: 1024px;\"><img loading=\"lazy\" decoding=\"async\" class=\"vce-single-image vcv-lozad\" data-src=\"https:\/\/www.bridge-global.com\/blog\/wp-content\/uploads\/2022\/03\/Laravel-Version-9.2-Released-What-All-Are-New-Array-keyby-method-e1646798109631.jpg\" width=\"1024\" height=\"501\" src=\"\" data-img-src=\"https:\/\/www.bridge-global.com\/blog\/wp-content\/uploads\/2022\/03\/Laravel-Version-9.2-Released-What-All-Are-New-Array-keyby-method-e1646798109631.jpg\" alt=\"Laravel Version 9.2 Released - What All Are New-Array keyby method\" title=\"Laravel Version 9.2 Released - What All Are New-Array keyby method\" \/><noscript>\n        <img loading=\"lazy\" decoding=\"async\" class=\"vce-single-image\" src=\"https:\/\/www.bridge-global.com\/blog\/wp-content\/uploads\/2022\/03\/Laravel-Version-9.2-Released-What-All-Are-New-Array-keyby-method-e1646798109631.jpg\" width=\"1024\" height=\"501\" alt=\"Laravel Version 9.2 Released - What All Are New-Array keyby method\" title=\"Laravel Version 9.2 Released - What All Are New-Array keyby method\" \/>\n      <\/noscript><\/div><figcaption hidden=\"\"><\/figcaption><\/figure><\/div><\/div><\/div><\/div><\/div><\/div><\/div><\/div><div class=\"vce-row-container\" data-vce-boxed-width=\"true\"><div class=\"vce-row vce-row--col-gap-30 vce-row-equal-height vce-row-content--top\" id=\"el-50bf7c67\" data-vce-do-apply=\"all el-50bf7c67\"><div class=\"vce-row-content\" data-vce-element-content=\"true\"><div class=\"vce-col vce-col--md-auto vce-col--xs-1 vce-col--xs-last vce-col--xs-first vce-col--sm-last vce-col--sm-first vce-col--md-last vce-col--lg-last vce-col--xl-last vce-col--md-first vce-col--lg-first vce-col--xl-first\" id=\"el-51d604f3\"><div class=\"vce-col-inner\" data-vce-do-apply=\"border margin background  el-51d604f3\"><div class=\"vce-col-content\" data-vce-element-content=\"true\" data-vce-do-apply=\"padding el-51d604f3\"><div class=\"vce-text-block\"><div class=\"vce-text-block-wrapper vce\" id=\"el-b0def739\" data-vce-do-apply=\"all el-b0def739\"><h2>3. Expects Output to Contain Test Assertion<\/h2>\n<p>A test method called expectsOutputToContain asserts that artisan commands include a substring of output:<\/p><\/div><\/div><\/div><\/div><\/div><\/div><\/div><\/div><div class=\"vce-row-container\" data-vce-boxed-width=\"true\"><div class=\"vce-row vce-row--col-gap-30 vce-row-equal-height vce-row-content--top\" id=\"el-236aea6e\" data-vce-do-apply=\"all el-236aea6e\"><div class=\"vce-row-content\" data-vce-element-content=\"true\"><div class=\"vce-col vce-col--md-auto vce-col--xs-1 vce-col--xs-last vce-col--xs-first vce-col--sm-last vce-col--sm-first vce-col--md-last vce-col--lg-last vce-col--xl-last vce-col--md-first vce-col--lg-first vce-col--xl-first\" id=\"el-c1815b5e\"><div class=\"vce-col-inner\" data-vce-do-apply=\"border margin background  el-c1815b5e\"><div class=\"vce-col-content\" data-vce-element-content=\"true\" data-vce-do-apply=\"padding el-c1815b5e\"><div class=\"vce-single-image-container vce-single-image--align-center\"><div class=\"vce vce-single-image-wrapper\" id=\"el-b7f5bc09\" data-vce-do-apply=\"all el-b7f5bc09\"><figure><div class=\"vce-single-image-inner vce-single-image--absolute\" style=\"padding-bottom: 18.13%; width: 877px;\"><img loading=\"lazy\" decoding=\"async\" class=\"vce-single-image vcv-lozad\" data-src=\"https:\/\/www.bridge-global.com\/blog\/wp-content\/uploads\/2022\/03\/Laravel-Version-9.2-Released-outout-to-contetina-text-assertion-e1646798353672.jpg\" width=\"877\" height=\"159\" src=\"\" data-img-src=\"https:\/\/www.bridge-global.com\/blog\/wp-content\/uploads\/2022\/03\/Laravel-Version-9.2-Released-outout-to-contetina-text-assertion-e1646798353672.jpg\" alt=\"Laravel Version 9.2 Released-outout to contetina text assertion\" title=\"Laravel Version 9.2 Released-outout to contetina text assertion\" \/><noscript>\n        <img loading=\"lazy\" decoding=\"async\" class=\"vce-single-image\" src=\"https:\/\/www.bridge-global.com\/blog\/wp-content\/uploads\/2022\/03\/Laravel-Version-9.2-Released-outout-to-contetina-text-assertion-e1646798353672.jpg\" width=\"877\" height=\"159\" alt=\"Laravel Version 9.2 Released-outout to contetina text assertion\" title=\"Laravel Version 9.2 Released-outout to contetina text assertion\" \/>\n      <\/noscript><\/div><figcaption hidden=\"\"><\/figcaption><\/figure><\/div><\/div><\/div><\/div><\/div><\/div><\/div><\/div><div class=\"vce-row-container\" data-vce-boxed-width=\"true\"><div class=\"vce-row vce-row--col-gap-30 vce-row-equal-height vce-row-content--top\" id=\"el-4fecadbf\" data-vce-do-apply=\"all el-4fecadbf\"><div class=\"vce-row-content\" data-vce-element-content=\"true\"><div class=\"vce-col vce-col--md-auto vce-col--xs-1 vce-col--xs-last vce-col--xs-first vce-col--sm-last vce-col--sm-first vce-col--md-last vce-col--lg-last vce-col--xl-last vce-col--md-first vce-col--lg-first vce-col--xl-first\" id=\"el-2fd19214\"><div class=\"vce-col-inner\" data-vce-do-apply=\"border margin background  el-2fd19214\"><div class=\"vce-col-content\" data-vce-element-content=\"true\" data-vce-do-apply=\"padding el-2fd19214\"><div class=\"vce-text-block\"><div class=\"vce-text-block-wrapper vce\" id=\"el-e8e5cb36\" data-vce-do-apply=\"all el-e8e5cb36\"><h2>4. When using Mail::alwaysTo, include X headers<\/h2><p>When utilizing the Mail::alwaysTo() function in Laravel development, you can include X headers as follows:<\/p><p>The original To, Cc, and Bcc are lost when using Mail::alwaysTo in development environments. This makes it challenging to establish where the email was heading during testing.<\/p><p>This PR inserts the original to, cc, and bcc addresses into the email's X-Headers so that this information may be accessed while still preventing the email from being forwarded to these recipients.<\/p><p>This is handy for testing the to, cc, and bcc fields while only sending emails to the provided alwaysTo address. For further information, see Pull Request #41101.<\/p><h2>5. Laravel CORS Integration into the Framework<\/h2><p>The fruitcake\/laravel-cors package has been migrated into the Laravel framework:<br>The primary purpose is to reduce a circular dependency on which we rely, in addition to eliminating another skeletal dependency via Laravel 9.2.<\/p><h2>6. String \"Between First\" Method<\/h2><p>A betweenFirst() function that returns the shortest feasible segment of a string between two provided values:<\/p><\/div><\/div><\/div><\/div><\/div><\/div><\/div><\/div><div class=\"vce-row-container\" data-vce-boxed-width=\"true\"><div class=\"vce-row vce-row--col-gap-30 vce-row-equal-height vce-row-content--top\" id=\"el-55768571\" data-vce-do-apply=\"all el-55768571\"><div class=\"vce-row-content\" data-vce-element-content=\"true\"><div class=\"vce-col vce-col--md-auto vce-col--xs-1 vce-col--xs-last vce-col--xs-first vce-col--sm-last vce-col--sm-first vce-col--md-last vce-col--lg-last vce-col--xl-last vce-col--md-first vce-col--lg-first vce-col--xl-first\" id=\"el-bee637cb\"><div class=\"vce-col-inner\" data-vce-do-apply=\"border margin background  el-bee637cb\"><div class=\"vce-col-content\" data-vce-element-content=\"true\" data-vce-do-apply=\"padding el-bee637cb\"><div class=\"vce-single-image-container vce-single-image--align-center\"><div class=\"vce vce-single-image-wrapper\" id=\"el-a6313663\" data-vce-do-apply=\"all el-a6313663\"><figure><div class=\"vce-single-image-inner vce-single-image--absolute\" style=\"padding-bottom: 27.9199%; width: 899px;\"><img loading=\"lazy\" decoding=\"async\" class=\"vce-single-image vcv-lozad\" data-src=\"https:\/\/www.bridge-global.com\/blog\/wp-content\/uploads\/2022\/03\/Laravel-Version-9.2-Released-String-between-first-method-e1646800296229.jpg\" width=\"899\" height=\"251\" src=\"\" data-img-src=\"https:\/\/www.bridge-global.com\/blog\/wp-content\/uploads\/2022\/03\/Laravel-Version-9.2-Released-String-between-first-method-e1646800296229.jpg\" alt=\"Laravel Version 9.2 Released-String between first method\" title=\"Laravel Version 9.2 Released-String between first method\" \/><noscript>\n        <img loading=\"lazy\" decoding=\"async\" class=\"vce-single-image\" src=\"https:\/\/www.bridge-global.com\/blog\/wp-content\/uploads\/2022\/03\/Laravel-Version-9.2-Released-String-between-first-method-e1646800296229.jpg\" width=\"899\" height=\"251\" alt=\"Laravel Version 9.2 Released-String between first method\" title=\"Laravel Version 9.2 Released-String between first method\" \/>\n      <\/noscript><\/div><figcaption hidden=\"\"><\/figcaption><\/figure><\/div><\/div><\/div><\/div><\/div><\/div><\/div><\/div><div class=\"vce-row-container\" data-vce-boxed-width=\"true\"><div class=\"vce-row vce-row--col-gap-30 vce-row-equal-height vce-row-content--top\" id=\"el-3854b20d\" data-vce-do-apply=\"all el-3854b20d\"><div class=\"vce-row-content\" data-vce-element-content=\"true\"><div class=\"vce-col vce-col--md-auto vce-col--xs-1 vce-col--xs-last vce-col--xs-first vce-col--sm-last vce-col--sm-first vce-col--md-last vce-col--lg-last vce-col--xl-last vce-col--md-first vce-col--lg-first vce-col--xl-first\" id=\"el-4f5fc7e4\"><div class=\"vce-col-inner\" data-vce-do-apply=\"border margin background  el-4f5fc7e4\"><div class=\"vce-col-content\" data-vce-element-content=\"true\" data-vce-do-apply=\"padding el-4f5fc7e4\"><div class=\"vce-text-block\"><div class=\"vce-text-block-wrapper vce\" id=\"el-9008785d\" data-vce-do-apply=\"all el-9008785d\"><h2>7. Allow a Custom Message to be Specified for Rule Objects<\/h2><p>When validating using a Rule object, you may give a custom error message. You may now add a custom message to the messages array with Laravel 9.2:<\/p><\/div><\/div><\/div><\/div><\/div><\/div><\/div><\/div><div class=\"vce-row-container\" data-vce-boxed-width=\"true\"><div class=\"vce-row vce-row--col-gap-30 vce-row-equal-height vce-row-content--top\" id=\"el-b001be25\" data-vce-do-apply=\"all el-b001be25\"><div class=\"vce-row-content\" data-vce-element-content=\"true\"><div class=\"vce-col vce-col--md-auto vce-col--xs-1 vce-col--xs-last vce-col--xs-first vce-col--sm-last vce-col--sm-first vce-col--md-last vce-col--lg-last vce-col--xl-last vce-col--md-first vce-col--lg-first vce-col--xl-first\" id=\"el-b8944c6e\"><div class=\"vce-col-inner\" data-vce-do-apply=\"border margin background  el-b8944c6e\"><div class=\"vce-col-content\" data-vce-element-content=\"true\" data-vce-do-apply=\"padding el-b8944c6e\"><div class=\"vce-single-image-container vce-single-image--align-center\"><div class=\"vce vce-single-image-wrapper\" id=\"el-f42fabc3\" data-vce-do-apply=\"all el-f42fabc3\"><figure><div class=\"vce-single-image-inner vce-single-image--absolute\" style=\"padding-bottom: 49.0395%; width: 885px;\"><img loading=\"lazy\" decoding=\"async\" class=\"vce-single-image vcv-lozad\" data-src=\"https:\/\/www.bridge-global.com\/blog\/wp-content\/uploads\/2022\/03\/Laravel-Version-9.2-Released-What-All-Are-New-rule-objects-e1646800383272.jpg\" width=\"885\" height=\"434\" src=\"\" data-img-src=\"https:\/\/www.bridge-global.com\/blog\/wp-content\/uploads\/2022\/03\/Laravel-Version-9.2-Released-What-All-Are-New-rule-objects-e1646800383272.jpg\" alt=\"Laravel Version 9.2 Released - What All Are New- rule objects\" title=\"Laravel Version 9.2 Released - What All Are New- rule objects\" \/><noscript>\n        <img loading=\"lazy\" decoding=\"async\" class=\"vce-single-image\" src=\"https:\/\/www.bridge-global.com\/blog\/wp-content\/uploads\/2022\/03\/Laravel-Version-9.2-Released-What-All-Are-New-rule-objects-e1646800383272.jpg\" width=\"885\" height=\"434\" alt=\"Laravel Version 9.2 Released - What All Are New- rule objects\" title=\"Laravel Version 9.2 Released - What All Are New- rule objects\" \/>\n      <\/noscript><\/div><figcaption hidden=\"\"><\/figcaption><\/figure><\/div><\/div><\/div><\/div><\/div><\/div><\/div><\/div><div class=\"vce-row-container\" data-vce-boxed-width=\"true\"><div class=\"vce-row vce-row--col-gap-30 vce-row-equal-height vce-row-content--top\" id=\"el-e8fe3340\" data-vce-do-apply=\"all el-e8fe3340\"><div class=\"vce-row-content\" data-vce-element-content=\"true\"><div class=\"vce-col vce-col--md-auto vce-col--xs-1 vce-col--xs-last vce-col--xs-first vce-col--sm-last vce-col--sm-first vce-col--md-last vce-col--lg-last vce-col--xl-last vce-col--md-first vce-col--lg-first vce-col--xl-first\" id=\"el-08ed9933\"><div class=\"vce-col-inner\" data-vce-do-apply=\"border margin background  el-08ed9933\"><div class=\"vce-col-content\" data-vce-element-content=\"true\" data-vce-do-apply=\"padding el-08ed9933\"><div class=\"vce-text-block\"><div class=\"vce-text-block-wrapper vce\" id=\"el-34ddd980\" data-vce-do-apply=\"all el-34ddd980\"><h2>New Additions in Laravel 9.2<\/h2><p>Apart from the above, the other newly added updates to Laravel 9.2 are:<\/p><ul><li>Added <strong>Illuminate\/Database\/Eloquent\/Casts\/Attribute::make()<\/strong> (#41014)<\/li><li>Added <strong>Illuminate\/Collections\/Arr::keyBy()<\/strong> (#41029)<\/li><li>Added expectsOutputToContain to the PendingCommand. (#40984)<\/li><li>Added ability to supply HTTP client methods with JsonSerializable instances (#41055)<\/li><li>Added <strong>Illuminate\/Filesystem\/AwsS3V3Adapter::getClinet()<\/strong> (#41079)<\/li><li>Added Support for enum in Builder::whereRelation (#41091)<\/li><li>Added X headers when using Mail::alwaysTo (#41101)<\/li><li>Added of support Bitwise operators in query (#41112)<\/li><li>Integrate Laravel CORS into framework (#41137)<\/li><li>Added <strong>Illuminate\/Support\/Str::betweenFirst()<\/strong> (#41144)<\/li><li>Allow specifiying custom messages for Rule objects (#41145)<\/li><\/ul><h2>Benefits of Using Laravel<\/h2><p>When creating a web application using the Laravel package, you will benefit from the following features:<\/p><ul><li>The Laravel framework makes the web application more scalable<\/li><li>Since Laravel development reuses components from various frameworks in developing web applications, significant time is saved in designing the web application<\/li><li>It comprises namespaces and interfaces, which aid in resource organization and management<\/li><\/ul><h2>Wrapping Up<\/h2><p>These are the new features and updates brought by Laravel 9.2 which will undoubtedly be of great use to developers. It's now your chance to test and learn them to put it into practice by developing real-world projects until you've mastered it. And if you are a bit short on the expertise you could always partner with a credible and proficient <a href=\"https:\/\/www.bridge-global.com\/services\/custom-software-development\" target=\"_blank\" rel=\"noopener\">custom software development company<\/a>.<\/p><\/div><\/div><\/div><\/div><\/div><\/div><\/div><\/div>\n<!-- AddThis Advanced Settings generic via filter on the_content --><!-- AddThis Share Buttons generic via filter on the_content -->","protected":false},"excerpt":{"rendered":"<p>Laravel just received its major annual update. The new version Laravel 9.2 brings several new features to excite developers. This post explores them in detail.<!-- AddThis Advanced Settings generic via filter on get_the_excerpt --><!-- AddThis Share Buttons generic via filter on get_the_excerpt --><\/p>\n","protected":false},"author":165,"featured_media":49870,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[487,488],"class_list":["post-49862","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-technology","tag-laravel-9-2","tag-laravel-new-version"],"featured_image_src":"https:\/\/www.bridge-global.com\/blog\/wp-content\/uploads\/2022\/03\/Laravel-Version-9.2-Released-What-All-Are-New.jpg","author_info":{"display_name":"Upendra Jith","author_link":"https:\/\/www.bridge-global.com\/blog\/author\/upendrajith\/"},"_links":{"self":[{"href":"https:\/\/www.bridge-global.com\/blog\/wp-json\/wp\/v2\/posts\/49862","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bridge-global.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bridge-global.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bridge-global.com\/blog\/wp-json\/wp\/v2\/users\/165"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bridge-global.com\/blog\/wp-json\/wp\/v2\/comments?post=49862"}],"version-history":[{"count":17,"href":"https:\/\/www.bridge-global.com\/blog\/wp-json\/wp\/v2\/posts\/49862\/revisions"}],"predecessor-version":[{"id":49885,"href":"https:\/\/www.bridge-global.com\/blog\/wp-json\/wp\/v2\/posts\/49862\/revisions\/49885"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.bridge-global.com\/blog\/wp-json\/wp\/v2\/media\/49870"}],"wp:attachment":[{"href":"https:\/\/www.bridge-global.com\/blog\/wp-json\/wp\/v2\/media?parent=49862"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bridge-global.com\/blog\/wp-json\/wp\/v2\/categories?post=49862"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bridge-global.com\/blog\/wp-json\/wp\/v2\/tags?post=49862"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}