padosoft/laravel-request

Laravel Package to interact with Illuminate Request and Files Upload.
919 2
Install
composer require padosoft/laravel-request
Latest Version:2.3.0
PHP:>=7.1
Laravel:5 – 9
License:MIT
Last Updated:Aug 7, 2025
Links: GitHub  ·  Packagist
Maintainer: lopadova

Laravel Package to interact with Illuminate Request and Files Upload.

Latest Version on Packagist Software License Build Status Quality Score Total Downloads SensioLabsInsight

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:

$ composer require padosoft/laravel-request

Usage

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 for more information what has changed recently.

Testing

$ composer test

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email instead of using the issue tracker.

Credits

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 for more information.

Related Packages

illuminatech/multipart-middleware

'multipart/form-data' parser middleware for Laravel

311,548 33
padosoft/laravel-support

support helpers, extended providers etc.. for laravel

17,139 2
padosoft/laravel-sluggable

Generate slugs when saving Eloquent models

16,771 4
padosoft/laravel-uploadable

Laravel package for automatic upload handling with trait

16,697 28
padosoft/laravel-validable

Trait to activate validation when saving Eloquent Model

16,070 7

Version History

Version Released PHP Laravel License
2.3.0 >=7.1 ^5.8|^6.0|^7.0|^8.0|^9.0 MIT
2.0.0 >=7.0.0 ^5.7 MIT
1.2.2 >=7.0.0 ^5.0 MIT
1.2.1 >=7.0.0 ^5.0 MIT
1.2.0 >=7.0.0 ^5.0 MIT