You can use value() to fetch a single value from the database, without having to instantiate an entire model

You can use value() to fetch a single value from the database, without having to instantiate an entire model

#Laravel Tip: If you want a single value from a database table.

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