Package Data | |
---|---|
Maintainer Username: | lopadova |
Maintainer Contact: | helpdesk@padosoft.com (Lorenzo Padovani) |
Package Create Date: | 2016-08-28 |
Package Last Update: | 2022-04-05 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-12-11 15:17:21 |
Package Statistics | |
---|---|
Total Downloads: | 895 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 2 |
Total Watchers: | 3 |
Total Forks: | 0 |
Total Open Issues: | 0 |
This package provides a series of class to interact with Illuminate Request and Files Upload.
##Requires
You can install the package via composer:
$ composer require padosoft/laravel-request
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.
Please see CHANGELOG for more information what has changed recently.
$ composer test
Please see CONTRIBUTING for details.
If you discover any security related issues, please email instead of using the issue tracker.
Padosoft (https://www.padosoft.com) is a software house based in Florence, Italy. Specialized in E-commerce and web sites.
The MIT License (MIT). Please see License File for more information.