1
0
Fork 0
mirror of https://github.com/archtechx/laravel-tips.git synced 2025-12-12 21:34:03 +00:00
laravel-tips/content/tips/you-can-use-valueorfail-to-fetch-a-value-from-the-database-or-abort-the-request-if-the-queried-record-does-not-exist.md
2021-11-05 17:12:37 +01:00

859 B

title tweet_id thread_slug author_username images created_at slug
You can use valueOrFail() to fetch a value from the database, or abort the request if the queried record does not exist 1456649612966576129 weekly-thread-2021-44 pascalbaljet
https://pbs.twimg.com/media/FC7vZ2oX0AIV4fG.jpg
2021-11-05T15:48:25+00:00 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