Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/soyhuce/laravel-safe-request
FormRequest helpers using validated data
https://github.com/soyhuce/laravel-safe-request
Last synced: about 2 months ago
JSON representation
FormRequest helpers using validated data
- Host: GitHub
- URL: https://github.com/soyhuce/laravel-safe-request
- Owner: Soyhuce
- License: mit
- Created: 2022-11-25T12:12:50.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-09-23T01:52:40.000Z (4 months ago)
- Last Synced: 2024-11-24T20:50:10.450Z (about 2 months ago)
- Language: PHP
- Size: 60.5 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE.md
- Security: .github/SECURITY.md
Awesome Lists containing this project
README
# FormRequest helpers using validated data
[![Latest Version on Packagist](https://img.shields.io/packagist/v/soyhuce/laravel-safe-request.svg?style=flat-square)](https://packagist.org/packages/soyhuce/laravel-safe-request)
[![GitHub Tests Action Status](https://img.shields.io/github/actions/workflow/status/soyhuce/laravel-safe-request/run-tests.yml?branch=main&label=tests&style=flat-square)](https://github.com/soyhuce/laravel-safe-request/actions/workflows/run-tests.yml)
[![GitHub Code Style Action Status](https://img.shields.io/github/actions/workflow/status/soyhuce/laravel-safe-request/phpstan.yml?branch=main&label=phpstan&style=flat-square)](https://github.com/soyhuce/laravel-safe-request/actions/workflows/phpstan.yml)
[![GitHub PHPStan Action Status](https://img.shields.io/github/actions/workflow/status/soyhuce/laravel-safe-request/php-cs-fixer.yml?branch=main&label=php-cs-fixer&style=flat-square)](https://github.com/soyhuce/laravel-safe-request/actions/workflows/php-cs-fixer.yml)
[![Total Downloads](https://img.shields.io/packagist/dt/soyhuce/laravel-safe-request.svg?style=flat-square)](https://packagist.org/packages/soyhuce/laravel-safe-request)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:
```bash
composer require soyhuce/laravel-safe-request
```You can publish and run the migrations with:
```bash
php artisan vendor:publish --tag="laravel-safe-request-migrations"
php artisan migrate
```You can publish the config file with:
```bash
php artisan vendor:publish --tag="laravel-safe-request-config"
```This is the contents of the published config file:
```php
return [
];
```Optionally, you can publish the views using
```bash
php artisan vendor:publish --tag="laravel-safe-request-views"
```## Usage
```php
$laravelSafeRequest = new Soyhuce\LaravelSafeRequest();
echo $laravelSafeRequest->echoPhrase('Hello, Soyhuce!');
```## Testing
```bash
composer test
```## Changelog
Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.
## Contributing
Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.
## Security Vulnerabilities
Please review [our security policy](../../security/policy) on how to report security vulnerabilities.
## Credits
- [Bastien Philippe](https://github.com/bastien-phi)
- [All Contributors](../../contributors)## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.