michael-rubel / laravel-safe-request
Makes your FormRequest keys retrieved from `$request->safe()` method by default to prevent retrieval of unvalidated input values.
Fund package maintenance!
paypal.me/observername
Installs: 12 265
Dependents: 0
Suggesters: 0
Security: 0
Stars: 13
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- php: ^8.0
- illuminate/contracts: ^9.0|^10.0
- spatie/laravel-package-tools: ^1.11
Requires (Dev)
- brianium/paratest: ^6.3
- laravel/pint: ^1.0
- mockery/mockery: ^1.4.4
- nunomaduro/collision: ^6.0
- nunomaduro/larastan: ^2.0
- orchestra/testbench: ^7.0|^8.0
- phpunit/phpunit: ^9.5
This package is auto-updated.
Last update: 2024-03-14 19:17:50 UTC
README
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.