markwalet/laravel-testable-requests

A Laravel package to make request testing easier
7,957
Install
composer require markwalet/laravel-testable-requests
Latest Version:v0.6.1
PHP:^8.2
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

albertcht/lumen-testing

Testing Suite For Lumen like Laravel does.

36,045 43
unicorn/lumen-testing

Testing Suite For Lumen like Laravel does.

2,196 0
socialengine/setup-test-db

Get efficient with seeding your database for tests in Laravel

14,055 9
smartymoon/inertia-laravel-testing

Testing helpers for https://github.com/inertiajs/inertia-laravel

131 0