https://github.com/padosoft/laravel-request
Laravel Package to interact with Illuminate Request and Files Upload.
https://github.com/padosoft/laravel-request
laravel laravel-package request
Last synced: 11 months ago
JSON representation
Laravel Package to interact with Illuminate Request and Files Upload.
- Host: GitHub
- URL: https://github.com/padosoft/laravel-request
- Owner: padosoft
- License: mit
- Created: 2016-08-28T15:36:26.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2022-04-05T10:52:15.000Z (about 4 years ago)
- Last Synced: 2025-02-28T13:35:48.508Z (over 1 year ago)
- Topics: laravel, laravel-package, request
- Language: PHP
- Size: 99.6 KB
- Stars: 2
- Watchers: 3
- 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
# Laravel Package to interact with Illuminate Request and Files Upload.
[](https://packagist.org/packages/padosoft/laravel-request)
[](LICENSE.md)
[](https://travis-ci.org/padosoft/laravel-request)
[](https://scrutinizer-ci.com/g/padosoft/laravel-request)
[](https://packagist.org/packages/padosoft/laravel-request)
[](https://insight.sensiolabs.com/projects/9482504c-ed2d-423f-94bb-1cf3a6babff0)
This package provides a series of class to interact with Illuminate Request and Files Upload.
##Requires
- php: >=7.1
- illuminate/support: ^5.8
- illuminate/http: ^5.8
- padosoft/io: ^1.0
## Installation
You can install the package via composer:
``` bash
$ composer require padosoft/laravel-request
```
## Usage
```php
use Padosoft\Laravel\Request\RequestHelper;
if(RequestHelper::currentRequestHasFiles()){
echo 'current request has file uploaded!';
}
if(RequestHelper::isValidCurrentRequestUploadFile('items_image', ['image/jpg','image/png'])){
echo 'current request has a valid file uploaded!';
}
$uploadedFile = RequestHelper::getCurrentRequestFileSafe('items_image');
var_dump($uploadedFile);
```
**NOTE:**
For all methods and helpers check the source code.
## Change log
Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.
## Testing
``` bash
$ composer test
```
## Contributing
Please see [CONTRIBUTING](CONTRIBUTING.md) for details.
## Security
If you discover any security related issues, please email instead of using the issue tracker.
## Credits
- [Lorenzo Padovani](https://github.com/lopadova)
- [All Contributors](../../contributors)
## About Padosoft
Padosoft (https://www.padosoft.com) is a software house based in Florence, Italy. Specialized in E-commerce and web sites.
## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.