--- title: 'You can use the boolean() / date() / string() methods on the Request object instead of manually type-casting request parameters' tweet_id: '1545466006096687110' thread_slug: weekly-thread-2022-27 author_username: ryangjchandler images: - 'https://pbs.twimg.com/media/FWhgKQPXwAELDpV.jpg' created_at: 2022-07-08T17:53:03+00:00 slug: you-can-use-the-boolean-date-string-methods-on-the-request-object-instead-of-manually-type-casting-request-parameters --- ⚡️ Instead of explicitly type-casting or wrapping request parameters, you can use some of Laravel's utility methods on the Request object. It comes with a boolean() helper, date() helper and a string() / str() helper!