{"id":51959,"date":"2023-03-24T06:12:57","date_gmt":"2023-03-24T06:12:57","guid":{"rendered":"https:\/\/www.bridge-global.com\/blog\/blog\/?p=51959"},"modified":"2023-03-24T06:28:10","modified_gmt":"2023-03-24T06:28:10","slug":"whats-new-in-laravel-10","status":"publish","type":"post","link":"https:\/\/www.bridge-global.com\/blog\/whats-new-in-laravel-10\/","title":{"rendered":"What\u2019s New in Laravel 10? Know All About it!"},"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-32024f4f\" data-vce-do-apply=\"all el-32024f4f\"><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-09722c9a\"><div class=\"vce-col-inner\" data-vce-do-apply=\"border margin background  el-09722c9a\"><div class=\"vce-col-content\" data-vce-element-content=\"true\" data-vce-do-apply=\"padding el-09722c9a\"><div class=\"vce-text-block\"><div class=\"vce-text-block-wrapper vce\" id=\"el-32bc5729\" data-vce-do-apply=\"all el-32bc5729\"><p>If you are all excited about Laravel\u2019s new version release, this blog is for you! This is also for those who are wondering if it\u2019s worthwhile to use PHP Laravel in 2023! Here, you will get some great news\u2026 read on to find it out.<\/p><p>We will briefly delve into the significance of the PHP programming language and the Laravel framework in detail. We will also explore the newly released Laravel 10 and the features it offers. In short, you will get to know what major changes and features are brought about by the latest Laravel 10 version.<\/p><h2>Why PHP Laravel?<\/h2><p>PHP is a popular general-purpose language <a href=\"https:\/\/w3techs.com\/technologies\/details\/pl-php#:~:text=PHP%20is%20used%20by%2077.5,side%20programming%20language%20we%20know.\" target=\"_blank\" rel=\"nofollow noopener\">powering 78.9% of websites<\/a>. This <a href=\"https:\/\/www.bridge-global.com\/services\/custom-software-development\/open-source-software-development\" target=\"_blank\" rel=\"noopener\">open-source<\/a> scripting language is a preferred choice among programmers and web developers as it helps create dynamic content and effectively interact with databases. Even in the midst of a plethora of newer languages, it's extensively used and supported by a large community of developers thanks to its simplicity, speed, and flexibility.<\/p><p>When it comes to choosing the best open-source <a href=\"..\/web-development-trends\/\" target=\"_blank\" rel=\"noopener\">web development<\/a> framework, Laravel scoops out one of the top positions. It has the versatility to build high-performing applications and hence is touted as the best PHP framework for developing robust web applications.<\/p><p>Here are some of the top websites and apps built with Laravel: <a href=\"https:\/\/laravel.io\/\" target=\"_blank\" rel=\"nofollow noopener\">Laravel.io<\/a>, <a href=\"https:\/\/asgardcms.com\/\" target=\"_blank\" rel=\"nofollow noopener\">Asgard CMS<\/a>, <a href=\"https:\/\/octobercms.com\/\" target=\"_blank\" rel=\"nofollow noopener\">October CMS<\/a>, <a href=\"https:\/\/alison.com\/\" target=\"_blank\" rel=\"nofollow noopener\">Alison<\/a>, <a href=\"https:\/\/www.invoiceninja.com\/\" target=\"_blank\" rel=\"nofollow noopener\">Invoice Ninja<\/a>, etc.<\/p><h2>A Quick Look Back at Laravel<\/h2><p>This powerful open-source PHP framework was developed and created by <a href=\"https:\/\/github.com\/taylorotwell\" target=\"_blank\" rel=\"noopener\">Taylor Otwell<\/a>. The first beta release of Laravel was made available on June 9, 2011. The release of Laravel 1 (Laravel Spark) ensued later in the same month. It was introduced as a first-rate substitute for CodeIgniter. It gained instant popularity thanks to its superior scalable features, clean syntax, and tools for tasks such as routing and authentication.<\/p><p>The Laravel framework has made strides since its initial release. It grew by evolving and enhancing with new features. With new versions and features being released annually, it has become a popular and dependable framework for PHP developers. (Release of major versions used to happen every 6 months. But they changed it to an annual affair to relieve their community and development team from the maintenance burden.)<\/p><h2>Why Laravel?<\/h2><ul><li>Artisan, its versatile command line interface routinely completes numerous repetitive tasks and thus saves developers\u2019 time and effort.<\/li><li>It has the ability to integrate with a valid token form or an AJAX call.<\/li><li>Anyone with a general understanding of PHP and object-oriented programming (OOP) concepts can quickly learn Laravel<\/li><li>Laravel has a wide assortment of <a href=\"https:\/\/laravel.com\/docs\/8.x\" target=\"_blank\" rel=\"nofollow noopener\">online documentation<\/a> and online learning resources<\/li><li>It offers diverse tools for developers at all expertise levels<\/li><li>Laravel functions as a brilliant PHP authentication framework by configuring everything well, implementing authentication and authorization very effortlessly and securely<\/li><li>It guarantees a high level of security through an incredibly advanced codebase<\/li><\/ul><h2>What\u2019s New in Laravel 10?<\/h2><p>Laravel 10 comes with some additional new features as in every release. You can consider upgrading to this new version if your application requires some additional features or needs some fixes.<\/p><p><strong>1.<\/strong> <strong>PHP 8.1 is the minimum required version<\/strong><\/p><p>Laravel 10 framework will no longer support PHP 8 (&lt;=v8.0). It sets PHP 8.1 as the minimum mandatory version. It holds certain PHP 8.1 features such as readonly properties and <span style=\"font-family: 'courier new', courier, monospace;\">array_is_list<\/span>.<\/p><p><strong>2. Support for PHP 8.2<\/strong><\/p><p>It\u2019s a piece of good news for the users of PHP 8.2 versions (released recently in Dec 2022) that the entire Laravel ecosystem supports all its features.<\/p><p><strong>3. Application Skeleton Code Will Have Native Type Declarations<\/strong><\/p><p>It has introduced argument and return types to all method signatures by meticulously updating the application skeleton and all stubs. It has also done away with the superfluous \"doc block\" type-hint information.<\/p><p>This change enhances the developer experience. It offers a better type of clarity that is impossible through PHP native types. Moreover, prevailing applications needing these type-hints will continue to function normally as it does not break the backward compatibility with existing applications.<\/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-77624372\" data-vce-do-apply=\"all el-77624372\"><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-5cb065e1\"><div class=\"vce-col-inner\" data-vce-do-apply=\"border margin background  el-5cb065e1\"><div class=\"vce-col-content\" data-vce-element-content=\"true\" data-vce-do-apply=\"padding el-5cb065e1\"><div class=\"vce-single-image-container vce-single-image--align-center\"><div class=\"vce vce-single-image-wrapper\" id=\"el-65fd131d\" data-vce-do-apply=\"all el-65fd131d\"><figure><div class=\"vce-single-image-inner vce-single-image--absolute\" style=\"padding-bottom: 100%; width: 820px;\"><img loading=\"lazy\" decoding=\"async\" class=\"vce-single-image vcv-lozad\" data-src=\"https:\/\/www.bridge-global.com\/blog\/wp-content\/uploads\/2023\/03\/laravel-10-coding-image.jpg\" width=\"820\" height=\"820\" src=\"\" data-img-src=\"https:\/\/www.bridge-global.com\/blog\/wp-content\/uploads\/2023\/03\/laravel-10-coding-image.jpg\" alt=\"laravel 10 coding image\" title=\"laravel 10 coding image\" \/><noscript>\n        <img loading=\"lazy\" decoding=\"async\" class=\"vce-single-image\" src=\"https:\/\/www.bridge-global.com\/blog\/wp-content\/uploads\/2023\/03\/laravel-10-coding-image.jpg\" width=\"820\" height=\"820\" alt=\"laravel 10 coding image\" title=\"laravel 10 coding image\" \/>\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-9c50410b\" data-vce-do-apply=\"all el-9c50410b\"><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-f26b949a\"><div class=\"vce-col-inner\" data-vce-do-apply=\"border margin background  el-f26b949a\"><div class=\"vce-col-content\" data-vce-element-content=\"true\" data-vce-do-apply=\"padding el-f26b949a\"><div class=\"vce-text-block\"><div class=\"vce-text-block-wrapper vce\" id=\"el-79b772c4\" data-vce-do-apply=\"all el-79b772c4\"><div><noscript><style>.vce-row-container .vcv-lozad {display: none}<\/style><\/noscript><\/div>\n<div>\n<p><strong>4. Laravel Pennant: An easy-to-use solution for maintaining feature flags<\/strong><\/p>\n<p><a href=\"https:\/\/laravel.com\/docs\/10.x\/pennant\" target=\"_blank\" rel=\"nofollow noopener\">Laravel Pennant<\/a>, developed by Tim MacDonald, is a \u201csimple and lightweight feature flag package - without the cruft\u201d. This reorganized approach to managing your application's feature flags facilitates the incremental rolling out of new features with confidence (Features can be easily defined via the <span style=\"font-family: 'courier new', courier, monospace;\">Feature::define<\/span> method.<\/p>\n<p>Developers will also be able to A\/B test new interface designs, complement a trunk-based development strategy, and a lot more.<\/p>\n<p>Pennant also comes with an in-memory array driver and a database driver for continuous feature storage.<\/p>\n<p><strong>5. All Validation Rules Invokable by Default<\/strong><\/p>\n<p>You no longer need to add an <span style=\"font-family: 'courier new', courier, monospace;\">--invokable<\/span> flag after the Artisan command to make an invokable validation rule (this was required in Laravel 9). The reason is that all Laravel 10 rules are invokable by default. You can create a new invokable rule in Laravel 10 by running the following command:<\/p>\n<p><span style=\"font-family: 'courier new', courier, monospace;\">php artisan make:rule CustomRule<\/span><\/p>\n<p><strong>6. Process Facade<\/strong><\/p>\n<p>A new<span style=\"font-family: 'courier new', courier, monospace;\"> Process<\/span> abstraction level or fa\u00e7ade is added to Laravel 10. The <a href=\"https:\/\/laravel.com\/docs\/10.x\/releases#process\" target=\"_blank\" rel=\"nofollow noopener\">Process Interaction<\/a> level by Nuno Maduro and Taylor Otwell enables the execution and management of concurrent processes easily and makes interaction with external processes easy.<\/p>\n<p><strong>7. Official Packages Gets a Boost<\/strong><\/p>\n<p>Laravel\u2019s official packages, the primary way of adding functionality to Laravel, have also received a facelift as part of the recent framework upgrade. The official packages and the ecosystem that have been updated are Breeze, Cashier Stripe, Dusk, Horizon, Installer, Jetstream, Passport, Pint, Sail, Scout, and Valet.<\/p>\n<\/div>\n<div><!--Start of Tawk.to Script (0.7.1)--> <!--End of Tawk.to Script (0.7.1)--><\/div><\/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-24bc76de\" data-vce-do-apply=\"all el-24bc76de\"><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-ddb8ccee\"><div class=\"vce-col-inner\" data-vce-do-apply=\"border margin background  el-ddb8ccee\"><div class=\"vce-col-content\" data-vce-element-content=\"true\" data-vce-do-apply=\"padding el-ddb8ccee\"><div class=\"vce-single-image-container vce-single-image--align-center\"><div class=\"vce vce-single-image-wrapper\" id=\"el-ab5d8b76\" data-vce-do-apply=\"all el-ab5d8b76\"><figure><div class=\"vce-single-image-inner vce-single-image--absolute\" style=\"padding-bottom: 100%; width: 820px;\"><img loading=\"lazy\" decoding=\"async\" class=\"vce-single-image vcv-lozad\" data-src=\"https:\/\/www.bridge-global.com\/blog\/wp-content\/uploads\/2023\/03\/Laravel-10-twitter-sreenshot.jpg\" width=\"820\" height=\"820\" src=\"\" data-img-src=\"https:\/\/www.bridge-global.com\/blog\/wp-content\/uploads\/2023\/03\/Laravel-10-twitter-sreenshot.jpg\" alt=\"Laravel 10 twitter screenshot\" title=\"Laravel 10 twitter sreenshot\" \/><noscript>\n        <img loading=\"lazy\" decoding=\"async\" class=\"vce-single-image\" src=\"https:\/\/www.bridge-global.com\/blog\/wp-content\/uploads\/2023\/03\/Laravel-10-twitter-sreenshot.jpg\" width=\"820\" height=\"820\" alt=\"Laravel 10 twitter screenshot\" title=\"Laravel 10 twitter sreenshot\" \/>\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-c7cc832f\" data-vce-do-apply=\"all el-c7cc832f\"><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-f0e5aa5a\"><div class=\"vce-col-inner\" data-vce-do-apply=\"border margin background  el-f0e5aa5a\"><div class=\"vce-col-content\" data-vce-element-content=\"true\" data-vce-do-apply=\"padding el-f0e5aa5a\"><div class=\"vce-text-block\"><div class=\"vce-text-block-wrapper vce\" id=\"el-e3cff9f7\" data-vce-do-apply=\"all el-e3cff9f7\"><p><strong>8. Horizon &amp; Telescope Receives a Facelift<\/strong><\/p><p><a href=\"https:\/\/laravel.com\/docs\/10.x\/horizon\" target=\"_blank\" rel=\"nofollow noopener\">Horizon<\/a> - the Laravel package to manage <a href=\"https:\/\/laravel.com\/docs\/10.x\/telescope\" target=\"_blank\" rel=\"nofollow noopener\">Laravel<\/a>-powered Redis queues, and Telescope - a debugging assistant for the Laravel framework have received a fresh and updated look with enhanced typography, spacing, and design.<\/p><p><strong>9. New Password Helper<\/strong><\/p><p>Laravel 10 comes with a new password helper to generate secure passwords. The new helper <span style=\"font-family: 'courier new', courier, monospace;\">Str::password()<\/span> will generate a secure, random password of the necessary length (32 characters long) combining letters, numbers, symbols, and spaces.<\/p><p><strong>10. Test Profiling to find slow tests<\/strong><\/p><p>Nuno Maduro has contributed <a href=\"https:\/\/laravel.com\/docs\/10.x\/releases#test-profiling\" target=\"_blank\" rel=\"nofollow noopener\">Test Profiling<\/a> to the Artisan test command. The new profile option helps in effortlessly finding the slowest tests in your application (<span style=\"font-family: 'courier new', courier, monospace;\">php artisan test \u2013profile<\/span>), which will be displayed directly within the CLI output. This new addition makes your tests faster by fixing slow tests or grouping them.<\/p><h2>Wrapping Up<\/h2><p>So, folks, that is about the major features of the newly released Laravel 10. Please check out the <a href=\"https:\/\/laravel.com\/docs\/10.x\/releases\" target=\"_blank\" rel=\"nofollow noopener\">official release page<\/a> to get more insights into the updates.<\/p><p>We can confidently say that the Laravel team has taken genuine efforts in bringing out major changes without affecting previous development. It has taken care of developers who are still working on <a href=\"https:\/\/www.bridge-global.com\/blog\/laravel-version-9-2-released\/\" target=\"_blank\" rel=\"noopener\">Laravel 9<\/a>. They get adequate time to migrate to Laravel 10.<\/p><p>Let\u2019s stay tuned for the next version upgrade in 2024.<\/p><p>Meanwhile, are you looking for skilled open-source developers with versatile experience in PHP and Laravel? You can <a href=\"https:\/\/www.bridge-global.com\/hire-developers\" target=\"_blank\" rel=\"noopener\">hire highly-skilled dedicated remote developers<\/a> to fulfill your project requirements in time. <a href=\"https:\/\/www.bridge-global.com\/contact-us\" target=\"_blank\" rel=\"noopener\"><strong>Schedule a call now<\/strong><\/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>Here\u2019s a quick and easy read on what&#8217;s new in Laravel. Know all about the latest updates and features added to Laravel 10. <!-- 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":83,"featured_media":51974,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,38],"tags":[619,620,621,622],"class_list":["post-51959","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-open-source","category-news-2","tag-laravel10","tag-laravel","tag-php","tag-opensource"],"featured_image_src":"https:\/\/www.bridge-global.com\/blog\/wp-content\/uploads\/2023\/03\/Laravel-10-release-updates-laravel-new-features.jpg","author_info":{"display_name":"Preethi Saro Philip","author_link":"https:\/\/www.bridge-global.com\/blog\/author\/preethi\/"},"_links":{"self":[{"href":"https:\/\/www.bridge-global.com\/blog\/wp-json\/wp\/v2\/posts\/51959","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\/83"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bridge-global.com\/blog\/wp-json\/wp\/v2\/comments?post=51959"}],"version-history":[{"count":26,"href":"https:\/\/www.bridge-global.com\/blog\/wp-json\/wp\/v2\/posts\/51959\/revisions"}],"predecessor-version":[{"id":51988,"href":"https:\/\/www.bridge-global.com\/blog\/wp-json\/wp\/v2\/posts\/51959\/revisions\/51988"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.bridge-global.com\/blog\/wp-json\/wp\/v2\/media\/51974"}],"wp:attachment":[{"href":"https:\/\/www.bridge-global.com\/blog\/wp-json\/wp\/v2\/media?parent=51959"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bridge-global.com\/blog\/wp-json\/wp\/v2\/categories?post=51959"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bridge-global.com\/blog\/wp-json\/wp\/v2\/tags?post=51959"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}