You can use valueOrFail() to fetch a value from the database, or abort the request if the queried record does not exist
- ·
- Telegram
- ·
- Newsletter
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