Skip to content

$ cat strict-request-input-casting-in-laravel.md

Strict Request Input Casting in Laravel

Learn how the new strict flag in Laravel 13.40 changes the request integer(), boolean(), float(), and string() helpers. Invalid input now returns your default value instead of being silently cast to 0 or raising an error.

Laravel News05 Nov 2026 · 1 min read · summary
Read on laravel-news.com ↗
Laravel 13.40 adds a strict flag to the request integer(), boolean(), float(), and string() helpers, so bad input returns your default instead of 0 or an error. The post Strict Request Input Casting in Laravel appeared first on Laravel News. Join the Laravel Newsletter to get all the latest Laravel articles like this directly in your inbox.

source

This is a summary of an article first published by Laravel News. The full piece is on their site.

Open original