New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

markwalet/laravel-testable-requests

A Laravel package to make request testing easier
8,204
Install
composer require markwalet/laravel-testable-requests
Latest Version:v0.6.1
PHP:^8.2
Laravel:11 · 12 · 13
Older releases:9 · 10
License:MIT
Last Updated:Jun 22, 2026
Links: GitHub  ·  Packagist
Maintainer: markwalet

Laravel Testable requests

Build Status Total Downloads Latest Stable Version License

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

Related Packages

benholmen/defrag

MS-DOS defrag output for your PHPUnit test suite

1,476 93
anthonyedmonds/laravel-testing-traits

Make testing easier with this collection of testing traits!

6,523 0
albertcht/lumen-testing

Testing Suite For Lumen like Laravel does.

36,102 43
rawphp/warp

Warm-worker test engine for Laravel + Pest — boots the app once per process and...

2,557 1
unicorn/lumen-testing

Testing Suite For Lumen like Laravel does.

2,201 0

Version History

Version Released PHP Laravel License
v0.6.1 ^8.2 ^11.0|^12.0|^13.0 MIT
v0.6.0 ^8.2 ^11.0|^12.0|^13.0 MIT
v0.5.0 ^8.1 ^10.0|^11.0|^12.0|^13.0 MIT
v0.4.1 ^8.0 ^10.0|^11.0|^12.0 MIT
v0.4.0 ^8.0 ^10.0|^11.0|^12.0 MIT