2017 © Pedro Peláez
 

library luosimao-captcha

Luosimao Validator for Laravel 5 能用的我更新过了

image

csuilong/luosimao-captcha

Luosimao Validator for Laravel 5 能用的我更新过了

  • Sunday, January 28, 2018
  • by wl496928838
  • Repository
  • 1 Watchers
  • 0 Stars
  • 8 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 5 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',
];
        $this->validate($request,[
            'luotest_response' => 'required|luosimao',
        ],[
            'luotest_response.required'  => '请点按验证码!',
            'luotest_response.luosimao'  => '验证码错误,请重试。',
        ]);

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

The Versions

28/01 2018

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

27/01 2018

1.0.1

1.0.1.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

27/01 2018

2.0.0

2.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

27/01 2018

V2.0.1

2.0.1.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

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