The value() helper returns the passed value UNLESS it's invokable — then it first calls it

The value() helper returns the passed value UNLESS it's invokable — then it first calls it

I absolutely love the little "value" helper method in @laravelphp as it allows you to create beautiful APIs with ease under the hood.

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