New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

lukzgois/request

Extend Laravel 5's request.
5,626 1

Larablocks Analysis

lukzgois/request has no release yet to check Laravel compatibility against.

Recommendation checks

Use with care

Use with care: meets 0 of 3 checks.

  • No dated releases
  • 0 downloads a month (needs 10,000)
  • 1 GitHub star (needs 100)

Data from Packagist and GitHub, checked by Larablocks on Nov 27, 2026.

Install
composer require lukzgois/request:dev-master
PHP:>=5.4.0
License:MIT
Last Updated:Feb 27, 2018
Links: GitHub  ·  Packagist
Maintainer: lukz

Laravel 5 Extended Requests

Package that exteds the Laravel 5 FormRequest class to easily create custom validation rules.

Quick start

Required setup

In the require key of composer.json file add the following

"lukzgois/request": "dev-master"

Run the Composer update comand

$ composer update

How to use

Make your request extends the Lukzgois\Request\Request class.

use Lukzgois\Request\Request;

class MyRequest extends Request {

Create your rules function with your custom rule:

public function rules()
{
  	return [
       	'my-rule' => 'custom'
    ];
}

Create a function with the format validate<your_custom_rule>, like this:

public function validateCustom($attribute, $value, $params)
{
    return $value == 'custom';
}

Do not forget to put a message for this new rule. It can be in the messages function of the request or in the validation of the lang files.

public fucnction messages()
{
	return [
    	'custom' => 'My custom message'
	];
}

And that is it HAHA! :) Please enjoy!

Related Packages

caue-santos/laravel-request-filters

A laravel request filters

29,097 2
sadekd/laravel-request-id

Laravel Request ID

15,975 1
akempes/laravel-request-logging

Write all incoming requests and there responses

4,684 6
zing/laravel-query-builder

Build Eloquent query from request.

1,787 4
dadaabc/laravel-components

Components for Laravel or Lumen

196 0