Strict Request Input Casting in Laravel

  • door Paul Redmond
  • Gepubliceerd op Laravel News
  • Toegevoegd op
  • Laravel Tutorials
Strict Request Input Casting in Laravel - Laravel News
Afbeelding: Laravel News

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.