2017 © Pedro Peláez
 

library laravel-rule-getter

Laravel get valitation rules helper.

image

hareku/laravel-rule-getter

Laravel get valitation rules helper.

  • Wednesday, June 14, 2017
  • by hareku
  • Repository
  • 1 Watchers
  • 1 Stars
  • 9 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 7 Versions
  • 0 % Grown

The README.md

Laravel Get Validation Rules Helper

This package helps you to get validation rule so easily., (*1)

Caution

  • Support Laravel 5.4~
  • Required php >=7.1

Installation

First, pull in the package through Composer., (*2)

Run composer require hareku/laravel-rule-getter, (*3)

And then, include the service provider within config/app.php., (*4)

'providers' => [
    Hareku\LaravelRule\ValidationRuleServiceProvider::class,
];

Publish the config file. (validation-rules.php), (*5)

$ php artisan vendor:publish --provider="Hareku\LaravelRule\ValidationRuleServiceProvider"

Setting is completed!, (*6)

Usage

Get a validation rule.

// validation-rules.php

return [
    'user' => [
        'name'     => 'required|min:1|max:20',
        'email'    => 'required|email|max:255|unique:users',
        'password' => 'required|min:6|max:100|confirmed',
    ],
];


// You can get with a helper function.

rule('user.name') // 'required|min:1|max:20'
rule('user.email') // 'required|email|max:255|unique:users'
rule('user.password') // 'required|min:6|max:100|confirmed'

License

MIT, (*7)

Author

hareku (hareku908@gmail.com), (*8)

The Versions

14/06 2017

dev-develop

dev-develop

Laravel get valitation rules helper.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar hareku

laravel validation

14/06 2017

dev-master

9999999-dev

Laravel get valitation rules helper.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar hareku

laravel validation

14/06 2017

1.0.4

1.0.4.0

Laravel get valitation rules helper.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar hareku

laravel validation

14/06 2017

1.0.3

1.0.3.0

Laravel get valitation rules helper.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar hareku

laravel validation

14/06 2017

1.0.2

1.0.2.0

Laravel get valitation rules helper.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar hareku

laravel validation

27/05 2017

1.0.1

1.0.1.0

Laravel get valitation rules helper.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar hareku

laravel validation

27/05 2017

1.0.0

1.0.0.0

Laravel get valitation rules helper.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar hareku

laravel validation