--- title: 'The value() helper returns the passed value UNLESS it''s invokable — then it first calls it' tweet_id: '1487081938623995912' thread_slug: weekly-thread-2022-04 author_username: marcelpociot images: - 'https://pbs.twimg.com/media/FJ-5q6EWQAMKjpX.jpg' created_at: 2022-01-28T15:15:37+00:00 slug: the-value-helper-returns-the-passed-value-unless-its-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.