2017 © Pedro Peláez
 

library lumen-form-request

Form request is a package for Lumen that lets developer validate form requests like Laravel does.

image

albertcht/lumen-form-request

Form request is a package for Lumen that lets developer validate form requests like Laravel does.

  • Sunday, March 4, 2018
  • by albertcht
  • Repository
  • 1 Watchers
  • 4 Stars
  • 739 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 6 Forks
  • 1 Open issues
  • 6 Versions
  • 65 % Grown

The README.md

Lumen Form Request

php-badge packagist-badge Total Downloads, (*1)

Description

A package that helps developer to segregate the validation logic from controller to a separate dedicated class. Lumen doesn't have any FormRequest class like Laravel. This will let you do that., (*2)

Installation

composer require albertcht/lumen-form-request
  • Add the service provider in bootstrap/app.php
$app->register(AlbertCht\Form\FormRequestServiceProvider::class);

Next step is create your FormRequest and extends from AlbertCht\Form\FormRequest, (*3)

Example

<?php

namespace App\Http\Requests;

use AlbertCht\Form\FormRequest;

class StoreDeviceRequest extends FormRequest
{
    public function authorize()
    {
        return true;
    }

    public function rules()
    {
        return [
            'mac_address' => 'required|unique:devices,mac_address'
        ];
    }
}

The Versions

04/03 2018

dev-master

9999999-dev

Form request is a package for Lumen that lets developer validate form requests like Laravel does.

  Sources   Download

MIT

The Requires

 

The Development Requires

lumen validation form-request

31/12 2017

v2.3

2.3.0.0

Form request is a package for Lumen that lets developer validate form requests like Laravel does.

  Sources   Download

MIT

The Requires

 

The Development Requires

lumen validation form-request

31/12 2017

v2.2

2.2.0.0

Form request is a package for Lumen that lets developer validate form requests like Laravel does.

  Sources   Download

MIT

The Requires

 

The Development Requires

lumen validation form-request

30/12 2017

v2.1

2.1.0.0

Form request is a package for Lumen that lets developer validate form requests like Laravel does.

  Sources   Download

MIT

The Requires

 

The Development Requires

lumen validation form-request

27/08 2017

v2.0

2.0.0.0

Form request is a package for Lumen that lets developer validate form requests like Laravel does.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Syed Sirajul Islam Anik

lumen validation form-request

25/08 2017

v1.0

1.0.0.0

Form request is a package that lets developer validate form requests in Lumen like Laravel does.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Syed Sirajul Islam Anik

lumen validation form-request