2017 © Pedro Peláez
 

library luosimao-captcha

Luosimao Validator for Laravel 5

image

pokeguys/luosimao-captcha

Luosimao Validator for Laravel 5

  • Monday, October 23, 2017
  • by PokeGuys
  • Repository
  • 2 Watchers
  • 0 Stars
  • 12 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 2 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Luosimao

A Luosimao Validator for Laravel 5., (*1)

Installation

Add the following line to the require section of composer.json:, (*2)

"require": {
  "pokeguys/laravel-luosimao-captcha": "dev-master"
}

Setup

  1. In /config/app.php, add the following to providers:
'providers' => [
    // Other Service Providers

    Pokeguys\Luosimao\LuosimaoServiceProvider::class,
],

and the following to aliases:, (*3)

'aliases' => [
  // Other Aliases

  'Luosimao' => Pokeguys\Luosimao\Facades\Luosimao::class,
],
  1. Run php artisan vendor:publish --provider="Pokeguys\Luosimao\LuosimaoServiceProvider".
  2. In /config/luosimao.php, enter your Luosimao public and private keys.
  3. The package ships with a default validation message, but if you want to customize it, add the following line into resources/lang/[lang]/validation.php:
[
  // Other validation message

  'luosimao' => 'The :attribute field is not correct.',
]

Usage

In your validation rules, add the following:, (*4)

$rules = [
    // ...
    'luosimao' => 'required|luosimao',
];

It's also recommended to add required when validating., (*5)

The Versions

23/10 2017

dev-master

9999999-dev http://github.com/pokeguys/laravel-luosimao-captcha

Luosimao Validator for Laravel 5

  Sources   Download

MIT

The Requires

 

by Avatar PokeGuys

laravel captcha laravel5 luosimao

23/10 2017

1.0.0

1.0.0.0 http://github.com/pokeguys/laravel-luosimao-captcha

Luosimao Validator for Laravel 5

  Sources   Download

MIT

The Requires

 

by Avatar PokeGuys

laravel captcha laravel5 luosimao