soyhuce/laravel-safe-request

FormRequest helpers using validated data
12,059
Install
composer require soyhuce/laravel-safe-request
Latest Version:2.3.0
PHP:^8.3
License:MIT
Last Updated:Apr 27, 2026
Links: GitHub  ·  Packagist
Maintainer: SoyHuCe

FormRequest helpers using validated data

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status GitHub PHPStan Action Status Total Downloads

This is where your description should go. Limit it to a paragraph or two. Consider adding a small example.

Installation

You can install the package via composer:

composer require soyhuce/laravel-safe-request

You can publish and run the migrations with:

php artisan vendor:publish --tag="laravel-safe-request-migrations"
php artisan migrate

You can publish the config file with:

php artisan vendor:publish --tag="laravel-safe-request-config"

This is the contents of the published config file:

return [
];

Optionally, you can publish the views using

php artisan vendor:publish --tag="laravel-safe-request-views"

Usage

$laravelSafeRequest = new Soyhuce\LaravelSafeRequest();
echo $laravelSafeRequest->echoPhrase('Hello, Soyhuce!');

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.

Related Packages

soyhuce/laravel-testing

Helpers for Laravel tests

15,577 3
soyhuce/laravel-validation-rules

A set of useful validation rules for Laravel

14,251 0
soyhuce/livewire-component-auto-register

Auto-register Livewire components outside base namespace

970 1
soyhuce/phpstan-extension

Extra rules for phpstan analysis

23,449 1
soyhuce/laravel-somake

An opinionated package to generate classes in your Laravel project

13,898 2