https://github.com/markwalet/laravel-testable-requests
A Laravel package to make request testing easier
https://github.com/markwalet/laravel-testable-requests
Last synced: 4 months ago
JSON representation
A Laravel package to make request testing easier
- Host: GitHub
- URL: https://github.com/markwalet/laravel-testable-requests
- Owner: markwalet
- License: mit
- Created: 2022-11-28T13:15:29.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2025-03-10T08:43:14.000Z (over 1 year ago)
- Last Synced: 2025-10-22T03:35:47.617Z (9 months ago)
- Language: PHP
- Size: 22.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Laravel Testable requests
[](LICENSE.md)
[](https://packagist.org/packages/markwalet/laravel-testable-requests)
[](https://packagist.org/packages/markwalet/laravel-testable-requests)
A Laravel package to make request testing easier.
This package is based on [a Gist](https://gist.github.com/colindecarlo/9ba9bd6524127fee7580ae66c6d4709d) from [Colin DeCarlo](https://github.com/colindecarlo).
## Installation
You can install this package with composer:
```shell
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](https://youtu.be/mC-MbQSHWec)
### Changes made in comparison to the video:
- Improved type hinting
- Added `defaultData()` method to the request
- Added `assertFailsValidationFor()` method to the validation result.