1
0
Fork 0
mirror of https://github.com/archtechx/laravel-tips.git synced 2025-12-12 13:24:03 +00:00
laravel-tips/content/tips/the-value-helper-returns-the-passed-value-unless-its-invokable-then-it-first-calls-it.md
2022-01-28 17:36:41 +01:00

535 B

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