Sign in

Qiang Wei / yangzhou · Files

GitLab

  • Go to dashboard
  • Project
  • Activity
  • Files
  • Commits
  • Builds 0
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • Forks
  • Network
  • yangzhou
  • app
  • Modules
  • Validators
  • SmsValidator.php
  • 扬州景区讲解器后台代码;
    9bcb1d75
    weiqiang authored
    2019-01-10 14:41:09 +0800  
    Browse Files »
SmsValidator.php 400 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
<?php
/**
 * Created by PhpStorm.
 * User: billy
 * Date: 11/02/2017
 * Time: 4:19 PM
 */

namespace App\Modules\Validators;

use App\Common\Sms;

class SmsValidator
{
    public function validate($attribute, $value, $params, $validator){
        //return true if field value is foo
        $telephone = $validator->getData()['telephone'];

        return Sms::verifyCode($telephone, $value);
    }
}