laravel-helpful-traits maintained by michael-rubel
Description
Makes your FormRequest keys retrieved from `$request->safe()` method by default to prevent retrieval of unvalidated input values.
Author
Last update
2022/06/16 15:34
(dev-main)
License
Downloads
21
Tags

Laravel Safe Request
Makes your FormRequest keys retrieved from $request->safe() method by default to prevent retrieval of unvalidated input values.
The package requires PHP 8 or higher and Laravel 9 or higher.
#StandWithUkraine
Installation
Install the package using composer:
composer require michael-rubel/laravel-safe-request
Usage
Apply trait for your base Form Request in Laravel:
use RetrievesSafeInput;
Any value accessed by the magic method (like $request->key) now will be retrieved from the $request->safe().
Testing
composer test
License
The MIT License (MIT). Please see License File for more information.