Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/owowagency/remove-required-rules
Remove Required Rules
https://github.com/owowagency/remove-required-rules
Last synced: 3 months ago
JSON representation
Remove Required Rules
- Host: GitHub
- URL: https://github.com/owowagency/remove-required-rules
- Owner: owowagency
- License: mit
- Created: 2021-11-17T12:25:40.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2021-11-17T12:45:14.000Z (about 3 years ago)
- Last Synced: 2024-09-19T16:18:27.717Z (4 months ago)
- Language: PHP
- Size: 8.79 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Remove required rules
[![Latest Version on Packagist](https://img.shields.io/packagist/v/owowagency/remove-required-rules.svg?style=flat-square)](https://packagist.org/packages/owowagency/remove-required-rules)
[![Total Downloads](https://img.shields.io/packagist/dt/owowagency/remove-required-rules.svg?style=flat-square)](https://packagist.org/packages/owowagency/remove-required-rules)
![GitHub Actions](https://github.com/owowagency/remove-required-rules/actions/workflows/main.yml/badge.svg)Sometimes you'd like to reuse all rules from the store request in an update request, but without the required rules. This helper methods does that for you. It loops through all the rules and tries to remove the required rule for you.
## Installation
You can install the package via composer:
```bash
composer require owowagency/remove-required-rules
```## Usage
```php
$rules = remove_required($rules);
```**What this would look like in a form request**
```php
rules();// Output: 'string' or ['string']
return remove_required($rules);
}
}
```### Testing
```bash
composer test
```### Changelog
Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.
## Contributing
Please see [CONTRIBUTING](CONTRIBUTING.md) for details.
### Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
## Credits
- [Dees Oomens](https://github.com/owowagency)
- [All Contributors](../../contributors)## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.