You can use valueOrFail() to fetch a value from the database, or abort the request if the queried record does not exist

You can use valueOrFail() to fetch a value from the database, or abort the request if the queried record does not exist

In the next blog posts, I'll cover Database and Eloquent improvements and new features in #Laravel 8.x.

Here's a great little feature that got added in v8.60 🔥

PR: https://github.com/laravel/framework/pull/38707

Yesterday's post about Collections: https://protone.media/en/blog/a-look-at-new-features-and-improvements-since-the-original-laravel-80-release-collections

#PHP #webdev #opensource

We're writing a book, you can get it for free here.