markwalet / laravel-testable-requests
A Laravel package to make request testing easier
Package info
github.com/markwalet/laravel-testable-requests
pkg:composer/markwalet/laravel-testable-requests
v0.6.0
2026-03-30 08:13 UTC
Requires
- php: ^8.2
- laravel/framework: ^11.0|^12.0|^13.0
Requires (Dev)
- larastan/larastan: ^3.9
- laravel/pint: ^1.29
- orchestra/testbench: ^9.17|^10.11|^11.0
- phpunit/phpunit: ^10.5|^11.0
This package is auto-updated.
Last update: 2026-03-30 08:21:48 UTC
README
A Laravel package to make request testing easier.
This package is based on a Gist from Colin DeCarlo.
Installation
You can install this package with composer:
composer require --dev markwalet/laravel-testable-requests
Documentation
The documentation is still being worked on. For now, please look at how these classes are used by Colin himself in a Laracon Online talk in 2021
Changes made in comparison to the video:
- Improved type hinting
- Added
defaultData()method to the request - Added
assertFailsValidationFor()method to the validation result.
Testing
Run the package test suite with:
composer test