PHP code example of phpviet / laravel-validation

1. Go to this page and download the library: Download phpviet/laravel-validation library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

phpviet / laravel-validation example snippets


$request->validate([
    'mobile_number' => '

public function rules()
{
    return [
        'mobile_number' => '

public function rules()
{
    return [
        'mobile_number' => ['

$request->validate([
    'land_line_number' => '

public function rules()
{
    return [
        'land_line_number' => '

public function rules()
{
    return [
        'land_line_number' => ['

$request->validate([
    'id_number' => '

public function rules()
{
    return [
        'id_number' => '

public function rules()
{
    return [
        'id_number' => ['

$request->validate([
    'ip_address' => ' // Kiểm tra phải là ipv4 trong nước.
    'ipv6_address' => '

public function rules()
{
    return [
        'ip_address' => ['dation\Rules\IpVN(4)], // Kiểm tra phải là ipv4 trong nước.
        'ipv6_address' => ['

php artisan vendor:publish