{"id":1491,"date":"2019-09-09T07:42:50","date_gmt":"2019-09-09T07:42:50","guid":{"rendered":"https:\/\/www.nethues.com\/blog\/?p=1491"},"modified":"2022-07-21T11:41:32","modified_gmt":"2022-07-21T11:41:32","slug":"laravel-6-released-whats-new","status":"publish","type":"post","link":"https:\/\/www.nethues.com\/blog\/laravel-6-released-whats-new\/","title":{"rendered":"Laravel 6 Released: What\u2019s New?"},"content":{"rendered":"<p>Laravel 6.0 is here!<\/p>\n<p>Taylor Otwell, the creator of Laravel, had been teasing the 6.0 release for a long time and it has officially dropped.<\/p>\n<p>The release marks the start of the Laravel framework using\u00a0Semantic Versioning, compatibility with\u00a0Laravel Vapor, improved authorization responses, job middleware, lazy collections, sub-query improvements &#8211; to name a few. Well, that\u2019s really interesting!<\/p>\n<p>Let\u2019s dig a little deeper and see what Laravel 6 has in store for the users.<\/p>\n<p><strong>Semantic Versioning<\/strong><br \/>\nAlthough the jump from 5.8 to 6.0 is a major release, Otwell mentioned that in terms of new features and changes, this update will feel more like moving from 5.8 to 5.9.<\/p>\n<p>Laravel has had huge updates with every major version release, which is typical in a young framework. All the updates throughout 5.x laid the groundwork for a stable and robust framework. Going forward with 6.0, you won&#8217;t have to worry as much about huge breaking changes and rewrites with every new major release. Because of this new stability, the Laravel framework package is officially adopting the more traditional semantic versioning. This makes the framework consistent with the other first-party Laravel packages.<\/p>\n<p><strong>Improved Authorization Responses<\/strong><br \/>\nPreviously it was difficult to provide custom error messages around authorization to end users. Laravel 6 introduces a\u00a0Gate :: inspect\u00a0method which provides the authorization policy\u2019s response:<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\" wp-image-1492 aligncenter\" src=\"https:\/\/www.nethues.com\/blog\/app\/uploads\/2019\/09\/Gate-.jpg\" alt=\"Laravel Gate\" width=\"582\" height=\"254\" srcset=\"https:\/\/www.nethues.com\/blog\/app\/uploads\/2019\/09\/Gate-.jpg 552w, https:\/\/www.nethues.com\/blog\/app\/uploads\/2019\/09\/Gate--300x131.jpg 300w, https:\/\/www.nethues.com\/blog\/app\/uploads\/2019\/09\/Gate--550x241.jpg 550w\" sizes=\"(max-width: 582px) 100vw, 582px\" \/><\/p>\n<p><strong>Job Middleware<\/strong><br \/>\nInstead of manually adding extra boilerplate code around your jobs, you can now\u00a0extract it into middleware\u00a0and then just attach it to the job.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"size-full wp-image-1493 aligncenter\" src=\"https:\/\/www.nethues.com\/blog\/app\/uploads\/2019\/09\/Middleware.jpg\" alt=\"Middleware\" width=\"562\" height=\"228\" srcset=\"https:\/\/www.nethues.com\/blog\/app\/uploads\/2019\/09\/Middleware.jpg 562w, https:\/\/www.nethues.com\/blog\/app\/uploads\/2019\/09\/Middleware-300x122.jpg 300w\" sizes=\"(max-width: 562px) 100vw, 562px\" \/><\/p>\n<p>The middleware will help you avoid custom logic in the body of your job\u2019s\u00a0handle()\u00a0method.<\/p>\n<p><strong>Lazy Collections<\/strong><br \/>\nLazy collections are a game-changer for working with extensive collections of data, including Eloquent model collections. A new\u00a0Illuminate\\Support\\LazyCollection\u00a0class leverages PHP\u2019s generators to keep memory low while working with large datasets. Check out\u00a0<strong>Lazy Collections<\/strong>\u00a0documentation for more details.<\/p>\n<p><strong>Laravel UI<\/strong><br \/>\nThe frontend scaffolding provided with Laravel 5.x releases is now extracted into a separate<strong>\u00a0laravel\/ui\u00a0Composer<\/strong> package. This allows first-party UI scaffolding to be iterated on separately from the primary framework.<\/p>\n<p>In a tweet back in May, Otwell mentions that he&#8217;s considering adding a\u00a0Tailwind\u00a0option as well!<\/p>\n<blockquote class=\"twitter-tweet\">\n<p dir=\"ltr\" lang=\"en\">I\u2019ve created <a href=\"https:\/\/t.co\/IPvq4PdlrV\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/t.co\/IPvq4PdlrV<\/a> to experiment with extracting Laravel\u2019s front-end scaffolding. Give it a look! Welcome any improvements and will probably explore a <a href=\"https:\/\/twitter.com\/tailwindcss?ref_src=twsrc%5Etfw\">@tailwindcss<\/a> option. &#x1f525; \u201cartisan ui vue \u2014auth\u201d \u2026 \u201cartisan ui react \u2014auth\u201d<\/p>\n<p>\u2014 Taylor Otwell &#x1f3dd; (@taylorotwell) <a href=\"https:\/\/twitter.com\/taylorotwell\/status\/1134454529628524545?ref_src=twsrc%5Etfw\">May 31, 2019<\/a><\/p><\/blockquote>\n<p><script async src=\"https:\/\/platform.twitter.com\/widgets.js\" charset=\"utf-8\"><\/script><\/p>\n<p><strong>New Branding<\/strong><br \/>\nWith every major release, there has also been new branding that comes along with it, and 6.0 is no exception!<\/p>\n<p>In addition to the new logo above, you can also find a fresh new redesign of the\u00a0Laravel.com\u00a0website.<\/p>\n<p><strong>Laravel Vapor<\/strong><br \/>\nAnd last but certainly not least, the release of Laravel 6.0 also includes the launch of a much-anticipated product in the Laravel ecosystem &#8211;\u00a0Laravel Vapor.<\/p>\n<p>Taylor explains, \u201c Laravel Vapor is a serverless deployment platform for Laravel, powered by AWS. Launch your Laravel infrastructure on Vapor and fall in love with the scalable simplicity of serverless.\u201d<\/p>\n<p>Instead of managing and updating servers for your Laravel application on your own,\u00a0Vapor is completely serverless! This doesn&#8217;t mean there are no servers involved, it just means\u00a0you\u00a0don&#8217;t have to deal with them.<\/p>\n<p>Another benefit is that you only pay for what you use. Instead of paying a flat monthly rate, you&#8217;re only charged when a request is made to your application. This, in turn, also means you don&#8217;t have to worry about scaling, since it will automatically be done for you.<\/p>\n<p>Additional features and benefits of Vapor:<\/p>\n<ul>\n<li>Handle over half a million requests with an average response time of 12 minutes.<\/li>\n<li>On-demand scaling Powered by AWS<\/li>\n<li>Ready for bursts of traffic<\/li>\n<li>Zero downtime during deployment<\/li>\n<li>Multiple environments with free vanity URL for testing<\/li>\n<li>Search and review recent logs right form the Vapor UI<\/li>\n<li>Purchase domains and manage DNS from Vapor dashboard<\/li>\n<li>Automatically added SSL certificates<\/li>\n<\/ul>\n<p>As always, if you have any questions or need help, our <a href=\"https:\/\/www.nethues.com\/hire-laravel-developer\">certified laravel developers<\/a>\u00a0are here to assist you.<\/p>\n<p>Start exploring Laravel 6 now!<\/p>\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 6.0 is here! Taylor Otwell, the creator of Laravel, had been teasing the 6.0 release for a long time and it has officially dropped&#8230;.<!-- 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":5,"featured_media":1512,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[127],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Check What\u2019s New in Larave 6 - Nethues Technologies<\/title>\n<meta name=\"description\" content=\"Taylor Otwell, the creator of Laravel, had been teasing the 6.0 release for a long time and it has officially dropped. See what&#039;s new in Laravel 6.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.nethues.com\/blog\/laravel-6-released-whats-new\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Check What\u2019s New in Larave 6 - Nethues Technologies\" \/>\n<meta property=\"og:description\" content=\"Taylor Otwell, the creator of Laravel, had been teasing the 6.0 release for a long time and it has officially dropped. See what&#039;s new in Laravel 6.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.nethues.com\/blog\/laravel-6-released-whats-new\/\" \/>\n<meta property=\"article:published_time\" content=\"2019-09-09T07:42:50+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-07-21T11:41:32+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.nethues.com\/blog\/app\/uploads\/2019\/09\/Laravel-6-Released_-What\u2019s-New_-3.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1075\" \/>\n\t<meta property=\"og:image:height\" content=\"507\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Priya Singh\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Priya Singh\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Check What\u2019s New in Larave 6 - Nethues Technologies","description":"Taylor Otwell, the creator of Laravel, had been teasing the 6.0 release for a long time and it has officially dropped. See what's new in Laravel 6.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.nethues.com\/blog\/laravel-6-released-whats-new\/","og_locale":"en_US","og_type":"article","og_title":"Check What\u2019s New in Larave 6 - Nethues Technologies","og_description":"Taylor Otwell, the creator of Laravel, had been teasing the 6.0 release for a long time and it has officially dropped. See what's new in Laravel 6.","og_url":"https:\/\/www.nethues.com\/blog\/laravel-6-released-whats-new\/","article_published_time":"2019-09-09T07:42:50+00:00","article_modified_time":"2022-07-21T11:41:32+00:00","og_image":[{"width":1075,"height":507,"url":"https:\/\/www.nethues.com\/blog\/app\/uploads\/2019\/09\/Laravel-6-Released_-What\u2019s-New_-3.jpg","type":"image\/jpeg"}],"author":"Priya Singh","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Priya Singh","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.nethues.com\/blog\/laravel-6-released-whats-new\/","url":"https:\/\/www.nethues.com\/blog\/laravel-6-released-whats-new\/","name":"Check What\u2019s New in Larave 6 - Nethues Technologies","isPartOf":{"@id":"https:\/\/www.nethues.com\/blog\/#website"},"datePublished":"2019-09-09T07:42:50+00:00","dateModified":"2022-07-21T11:41:32+00:00","author":{"@id":"https:\/\/www.nethues.com\/blog\/#\/schema\/person\/95e5b35809e26aae533009c049472749"},"description":"Taylor Otwell, the creator of Laravel, had been teasing the 6.0 release for a long time and it has officially dropped. See what's new in Laravel 6.","breadcrumb":{"@id":"https:\/\/www.nethues.com\/blog\/laravel-6-released-whats-new\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.nethues.com\/blog\/laravel-6-released-whats-new\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.nethues.com\/blog\/laravel-6-released-whats-new\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.nethues.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Laravel 6 Released: What\u2019s New?"}]},{"@type":"WebSite","@id":"https:\/\/www.nethues.com\/blog\/#website","url":"https:\/\/www.nethues.com\/blog\/","name":"","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.nethues.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.nethues.com\/blog\/#\/schema\/person\/95e5b35809e26aae533009c049472749","name":"Priya Singh","description":"With hands-on some of the most challenging technologies including Laravel, VueJS, OpenCart and Core PHP, Priya has proven herself as the ultimate software expert.","url":"https:\/\/www.nethues.com\/blog\/author\/priyasingh\/"}]}},"_links":{"self":[{"href":"https:\/\/www.nethues.com\/blog\/wp-json\/wp\/v2\/posts\/1491"}],"collection":[{"href":"https:\/\/www.nethues.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.nethues.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.nethues.com\/blog\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.nethues.com\/blog\/wp-json\/wp\/v2\/comments?post=1491"}],"version-history":[{"count":5,"href":"https:\/\/www.nethues.com\/blog\/wp-json\/wp\/v2\/posts\/1491\/revisions"}],"predecessor-version":[{"id":2613,"href":"https:\/\/www.nethues.com\/blog\/wp-json\/wp\/v2\/posts\/1491\/revisions\/2613"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.nethues.com\/blog\/wp-json\/wp\/v2\/media\/1512"}],"wp:attachment":[{"href":"https:\/\/www.nethues.com\/blog\/wp-json\/wp\/v2\/media?parent=1491"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.nethues.com\/blog\/wp-json\/wp\/v2\/categories?post=1491"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.nethues.com\/blog\/wp-json\/wp\/v2\/tags?post=1491"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}