for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @link https://github.com/phpviet/laravel-validation
*
* @copyright (c) PHP Viet
* @license [MIT](https://opensource.org/licenses/MIT)
*/
namespace PHPViet\Laravel\Validation\Rules;
use PHPViet\Validation\Validator;
* @author Vuong Minh <[email protected]>
* @since 1.0.0
class MobileVN extends CallableRule
{
* {@inheritdoc}
public function passes($attribute, $value): bool
return Validator::mobileVN()->validate($value);
}
public function message(): string
return __('phpVietValidation::validation.mobile');