{"id":12994,"date":"2023-02-02T01:29:10","date_gmt":"2023-02-02T06:29:10","guid":{"rendered":"http:\/\/local.brightwhiz\/?p=12994"},"modified":"2024-02-20T17:16:27","modified_gmt":"2024-02-20T14:16:27","slug":"laravel-9-49-release","status":"publish","type":"post","link":"http:\/\/local.brightwhiz\/laravel-9-49-release\/","title":{"rendered":"Laravel 9.49 Release With Enum Arrays now Available"},"content":{"rendered":"\n

Laravel 9.49 release is now available for general availability. This new release comes with support for casting collection or array of enums as contributed by Ralph J. Smit.<\/p>\n\n\n\n

With CLI prompts, Laravel 9.49 brings the ability to automatically prompt the user for missing command arguments instead of returning an error. This feature was contributed by Jess Archer.<\/p>\n\n\n\n

Two new TestResponse JSON assertion methods for asserting that JSON is an array and asserting that JSON<\/a> is an object have been contributed by Seth Phat.<\/p>\n\n\n\n

missing<\/strong>” validation rules are now included in this version. This is a strict version of the prohibits validation rule. This is where the field under validation must not be present in the input data. Tim MacDonald contributed this feature.<\/p>\n\n\n\n

There are now new HTTP client response error handling methods as contributed by Wendell Adriel. These include:<\/p>\n\n\n\n

$response->clientError();\n$response->serverError();\n$response->throwIfStatus(403);\n$response->throwUnlessStatus(200);<\/code><\/pre>\n\n\n\n

Other new features in Laravel 9.49 release include configurable timezone support for queue worker output by Matias M\u00e4ki as well as contributions from Erfan Hemmati introducing a noActionOnDelete()<\/code> method to migrations for foreign keys.<\/p>\n\n\n\n

Pascal Huberts contributed a forceDeleteQuietly()<\/code> method that forces a hard delete on a soft-deleted model without raising any events:<\/p>\n\n\n\n

Finally Array sortDesc()<\/code> method which sorts an array in descending order by its values was contributed by Timur Fralik.<\/p>\n\n\n\n

Laravel<\/a> is a free and open-source PHP<\/a> web framework based on Symfony and created by Taylor Otwell. It is used for the development of web applications following the model\u2013view\u2013controller architectural pattern.<\/p>\n\n\n\n

Follow the reference links below to get detailed information and examples highlighting the above.<\/p>\n","protected":false},"excerpt":{"rendered":"

Laravel 9.49 release is now available for general availability. This new release comes with support for casting collection or array of enums as contributed by Ralph J. Smit. With CLI…<\/p>\n","protected":false},"author":1,"featured_media":12995,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[25,13,27,28,16,18],"tags":[164,252,334,344,424,433,449,452,544,545],"yoast_head":"\nLaravel 9.49 Release With Enum Arrays now Available<\/title>\n<meta name=\"description\" content=\"Laravel 9.49 release is now available for general availability. This new release comes with support for casting collection or array of enums\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/local.brightwhiz\/laravel-9-49-release\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Laravel 9.49 Release With Enum Arrays now Available\" \/>\n<meta property=\"og:description\" content=\"Laravel 9.49 release is now available for general availability. This new release comes with support for casting collection or array of enums\" \/>\n<meta property=\"og:url\" content=\"http:\/\/local.brightwhiz\/laravel-9-49-release\/\" \/>\n<meta property=\"og:site_name\" content=\"Brightwhiz.com\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/brightwhiz\/\" \/>\n<meta property=\"article:published_time\" content=\"2023-02-02T06:29:10+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-02-20T14:16:27+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/local.brightwhiz\/wp-content\/uploads\/2023\/02\/Laravel-9.49-Release.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1280\" \/>\n\t<meta property=\"og:image:height\" content=\"680\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Michael Bright\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@brightwhizmag\" \/>\n<meta name=\"twitter:site\" content=\"@brightwhizmag\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Michael Bright\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"http:\/\/local.brightwhiz\/laravel-9-49-release\/#article\",\"isPartOf\":{\"@id\":\"http:\/\/local.brightwhiz\/laravel-9-49-release\/\"},\"author\":{\"name\":\"Michael Bright\",\"@id\":\"http:\/\/local.brightwhiz\/#\/schema\/person\/81f0f3126f13834ae2e7f381b3028e32\"},\"headline\":\"Laravel 9.49 Release With Enum Arrays now Available\",\"datePublished\":\"2023-02-02T06:29:10+00:00\",\"dateModified\":\"2024-02-20T14:16:27+00:00\",\"mainEntityOfPage\":{\"@id\":\"http:\/\/local.brightwhiz\/laravel-9-49-release\/\"},\"wordCount\":260,\"commentCount\":0,\"publisher\":{\"@id\":\"http:\/\/local.brightwhiz\/#organization\"},\"image\":{\"@id\":\"http:\/\/local.brightwhiz\/laravel-9-49-release\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/local.brightwhiz\/wp-content\/uploads\/2023\/02\/Laravel-9.49-Release.jpg\",\"keywords\":[\"Cross Platform\",\"Frameworks\",\"JSON\",\"Laravel\",\"Open Source\",\"Optimization\",\"Performance\",\"PHP\",\"Software development\",\"Software Engineering\"],\"articleSection\":[\"Libraries\",\"News\",\"Programming\",\"Software\",\"Technology\",\"Tools\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"http:\/\/local.brightwhiz\/laravel-9-49-release\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"http:\/\/local.brightwhiz\/laravel-9-49-release\/\",\"url\":\"http:\/\/local.brightwhiz\/laravel-9-49-release\/\",\"name\":\"Laravel 9.49 Release With Enum Arrays now Available\",\"isPartOf\":{\"@id\":\"http:\/\/local.brightwhiz\/#website\"},\"primaryImageOfPage\":{\"@id\":\"http:\/\/local.brightwhiz\/laravel-9-49-release\/#primaryimage\"},\"image\":{\"@id\":\"http:\/\/local.brightwhiz\/laravel-9-49-release\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/local.brightwhiz\/wp-content\/uploads\/2023\/02\/Laravel-9.49-Release.jpg\",\"datePublished\":\"2023-02-02T06:29:10+00:00\",\"dateModified\":\"2024-02-20T14:16:27+00:00\",\"description\":\"Laravel 9.49 release is now available for general availability. This new release comes with support for casting collection or array of enums\",\"breadcrumb\":{\"@id\":\"http:\/\/local.brightwhiz\/laravel-9-49-release\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/local.brightwhiz\/laravel-9-49-release\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\/\/local.brightwhiz\/laravel-9-49-release\/#primaryimage\",\"url\":\"http:\/\/local.brightwhiz\/wp-content\/uploads\/2023\/02\/Laravel-9.49-Release.jpg\",\"contentUrl\":\"http:\/\/local.brightwhiz\/wp-content\/uploads\/2023\/02\/Laravel-9.49-Release.jpg\",\"width\":1280,\"height\":680,\"caption\":\"Laravel 9.49 Release\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/local.brightwhiz\/laravel-9-49-release\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"http:\/\/local.brightwhiz\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Laravel 9.49 Release With Enum Arrays now Available\"}]},{\"@type\":\"WebSite\",\"@id\":\"http:\/\/local.brightwhiz\/#website\",\"url\":\"http:\/\/local.brightwhiz\/\",\"name\":\"Brightwhiz.com\",\"description\":\"Best Tech guides, Tutorials, and News\",\"publisher\":{\"@id\":\"http:\/\/local.brightwhiz\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"http:\/\/local.brightwhiz\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"http:\/\/local.brightwhiz\/#organization\",\"name\":\"Brightwhiz\",\"url\":\"http:\/\/local.brightwhiz\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\/\/local.brightwhiz\/#\/schema\/logo\/image\/\",\"url\":\"http:\/\/local.brightwhiz\/wp-content\/uploads\/2021\/11\/brightwhiz-com-logo-orange.png\",\"contentUrl\":\"http:\/\/local.brightwhiz\/wp-content\/uploads\/2021\/11\/brightwhiz-com-logo-orange.png\",\"width\":706,\"height\":135,\"caption\":\"Brightwhiz\"},\"image\":{\"@id\":\"http:\/\/local.brightwhiz\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/brightwhiz\/\",\"https:\/\/twitter.com\/brightwhizmag\",\"https:\/\/instagram.com\/bright_whiz\/\",\"https:\/\/www.pinterest.com\/sobbayi\/\",\"https:\/\/www.youtube.com\/channel\/UC6sCdP_d_RiTIM7ErFT-PSQ\"]},{\"@type\":\"Person\",\"@id\":\"http:\/\/local.brightwhiz\/#\/schema\/person\/81f0f3126f13834ae2e7f381b3028e32\",\"name\":\"Michael Bright\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\/\/local.brightwhiz\/#\/schema\/person\/image\/\",\"url\":\"http:\/\/1.gravatar.com\/avatar\/da90485875ff0aafa38fdd494abe87d1?s=96&d=mm&r=g\",\"contentUrl\":\"http:\/\/1.gravatar.com\/avatar\/da90485875ff0aafa38fdd494abe87d1?s=96&d=mm&r=g\",\"caption\":\"Michael Bright\"},\"sameAs\":[\"https:\/\/sobbayi.com\"],\"url\":\"http:\/\/local.brightwhiz\/author\/sobbayiadmin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Laravel 9.49 Release With Enum Arrays now Available","description":"Laravel 9.49 release is now available for general availability. This new release comes with support for casting collection or array of enums","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":"http:\/\/local.brightwhiz\/laravel-9-49-release\/","og_locale":"en_US","og_type":"article","og_title":"Laravel 9.49 Release With Enum Arrays now Available","og_description":"Laravel 9.49 release is now available for general availability. This new release comes with support for casting collection or array of enums","og_url":"http:\/\/local.brightwhiz\/laravel-9-49-release\/","og_site_name":"Brightwhiz.com","article_publisher":"https:\/\/www.facebook.com\/brightwhiz\/","article_published_time":"2023-02-02T06:29:10+00:00","article_modified_time":"2024-02-20T14:16:27+00:00","og_image":[{"width":1280,"height":680,"url":"http:\/\/local.brightwhiz\/wp-content\/uploads\/2023\/02\/Laravel-9.49-Release.jpg","type":"image\/jpeg"}],"author":"Michael Bright","twitter_card":"summary_large_image","twitter_creator":"@brightwhizmag","twitter_site":"@brightwhizmag","twitter_misc":{"Written by":"Michael Bright","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"http:\/\/local.brightwhiz\/laravel-9-49-release\/#article","isPartOf":{"@id":"http:\/\/local.brightwhiz\/laravel-9-49-release\/"},"author":{"name":"Michael Bright","@id":"http:\/\/local.brightwhiz\/#\/schema\/person\/81f0f3126f13834ae2e7f381b3028e32"},"headline":"Laravel 9.49 Release With Enum Arrays now Available","datePublished":"2023-02-02T06:29:10+00:00","dateModified":"2024-02-20T14:16:27+00:00","mainEntityOfPage":{"@id":"http:\/\/local.brightwhiz\/laravel-9-49-release\/"},"wordCount":260,"commentCount":0,"publisher":{"@id":"http:\/\/local.brightwhiz\/#organization"},"image":{"@id":"http:\/\/local.brightwhiz\/laravel-9-49-release\/#primaryimage"},"thumbnailUrl":"http:\/\/local.brightwhiz\/wp-content\/uploads\/2023\/02\/Laravel-9.49-Release.jpg","keywords":["Cross Platform","Frameworks","JSON","Laravel","Open Source","Optimization","Performance","PHP","Software development","Software Engineering"],"articleSection":["Libraries","News","Programming","Software","Technology","Tools"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["http:\/\/local.brightwhiz\/laravel-9-49-release\/#respond"]}]},{"@type":"WebPage","@id":"http:\/\/local.brightwhiz\/laravel-9-49-release\/","url":"http:\/\/local.brightwhiz\/laravel-9-49-release\/","name":"Laravel 9.49 Release With Enum Arrays now Available","isPartOf":{"@id":"http:\/\/local.brightwhiz\/#website"},"primaryImageOfPage":{"@id":"http:\/\/local.brightwhiz\/laravel-9-49-release\/#primaryimage"},"image":{"@id":"http:\/\/local.brightwhiz\/laravel-9-49-release\/#primaryimage"},"thumbnailUrl":"http:\/\/local.brightwhiz\/wp-content\/uploads\/2023\/02\/Laravel-9.49-Release.jpg","datePublished":"2023-02-02T06:29:10+00:00","dateModified":"2024-02-20T14:16:27+00:00","description":"Laravel 9.49 release is now available for general availability. This new release comes with support for casting collection or array of enums","breadcrumb":{"@id":"http:\/\/local.brightwhiz\/laravel-9-49-release\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["http:\/\/local.brightwhiz\/laravel-9-49-release\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/local.brightwhiz\/laravel-9-49-release\/#primaryimage","url":"http:\/\/local.brightwhiz\/wp-content\/uploads\/2023\/02\/Laravel-9.49-Release.jpg","contentUrl":"http:\/\/local.brightwhiz\/wp-content\/uploads\/2023\/02\/Laravel-9.49-Release.jpg","width":1280,"height":680,"caption":"Laravel 9.49 Release"},{"@type":"BreadcrumbList","@id":"http:\/\/local.brightwhiz\/laravel-9-49-release\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"http:\/\/local.brightwhiz\/"},{"@type":"ListItem","position":2,"name":"Laravel 9.49 Release With Enum Arrays now Available"}]},{"@type":"WebSite","@id":"http:\/\/local.brightwhiz\/#website","url":"http:\/\/local.brightwhiz\/","name":"Brightwhiz.com","description":"Best Tech guides, Tutorials, and News","publisher":{"@id":"http:\/\/local.brightwhiz\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"http:\/\/local.brightwhiz\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"http:\/\/local.brightwhiz\/#organization","name":"Brightwhiz","url":"http:\/\/local.brightwhiz\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/local.brightwhiz\/#\/schema\/logo\/image\/","url":"http:\/\/local.brightwhiz\/wp-content\/uploads\/2021\/11\/brightwhiz-com-logo-orange.png","contentUrl":"http:\/\/local.brightwhiz\/wp-content\/uploads\/2021\/11\/brightwhiz-com-logo-orange.png","width":706,"height":135,"caption":"Brightwhiz"},"image":{"@id":"http:\/\/local.brightwhiz\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/brightwhiz\/","https:\/\/twitter.com\/brightwhizmag","https:\/\/instagram.com\/bright_whiz\/","https:\/\/www.pinterest.com\/sobbayi\/","https:\/\/www.youtube.com\/channel\/UC6sCdP_d_RiTIM7ErFT-PSQ"]},{"@type":"Person","@id":"http:\/\/local.brightwhiz\/#\/schema\/person\/81f0f3126f13834ae2e7f381b3028e32","name":"Michael Bright","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/local.brightwhiz\/#\/schema\/person\/image\/","url":"http:\/\/1.gravatar.com\/avatar\/da90485875ff0aafa38fdd494abe87d1?s=96&d=mm&r=g","contentUrl":"http:\/\/1.gravatar.com\/avatar\/da90485875ff0aafa38fdd494abe87d1?s=96&d=mm&r=g","caption":"Michael Bright"},"sameAs":["https:\/\/sobbayi.com"],"url":"http:\/\/local.brightwhiz\/author\/sobbayiadmin\/"}]}},"_links":{"self":[{"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/posts\/12994"}],"collection":[{"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/comments?post=12994"}],"version-history":[{"count":1,"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/posts\/12994\/revisions"}],"predecessor-version":[{"id":13634,"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/posts\/12994\/revisions\/13634"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/media\/12995"}],"wp:attachment":[{"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/media?parent=12994"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/categories?post=12994"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/tags?post=12994"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}