{"id":12870,"date":"2023-01-11T01:09:21","date_gmt":"2023-01-11T06:09:21","guid":{"rendered":"http:\/\/local.brightwhiz\/?p=12870"},"modified":"2023-01-12T01:15:19","modified_gmt":"2023-01-12T06:15:19","slug":"laravel-9-47-release","status":"publish","type":"post","link":"http:\/\/local.brightwhiz\/laravel-9-47-release\/","title":{"rendered":"Laravel 9.47 Release with new Eloquent Collection Visibility Methods"},"content":{"rendered":"\n
The latest Laravel 9.47 Release is now available new Eloquent collection visibility methods, added support for lazy collections with the batch fake, and more improvements and fixes.<\/p>\n\n\n\n
There is now support for LazyCollection when using the withFakeBatch() with a Job in Laravel<\/a>. There is now an easy way to mark singleton routes as “destroyable<\/strong>.” This type of route may be deleted, but it may not be created by default.<\/p>\n\n\n\n You can check out some Laravel 9.47 release examples showing the above features on this announce page<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":" The latest Laravel 9.47 Release is now available new Eloquent collection visibility methods, added support for lazy collections with the batch fake, and more improvements and fixes. setVisible and setHidden…<\/p>\n","protected":false},"author":1,"featured_media":12871,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[25,13,27,28,16,18],"tags":[252,344,350,424,433,449,452,471,591,635,636,638],"yoast_head":"\nsetVisible<\/code> and
setHidden<\/code> methods have been added to Eloquent collections. The setVisible method is ideal for when you want to be explicit about the data you want to return while the converse setHidden is useful if you only have a few fields that you want explicitly hidden but generally want values visible by default.<\/p>\n\n\n\n