PHP code example of rabianr / laravel-validation-japanese

1. Go to this page and download the library: Download rabianr/laravel-validation-japanese 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/ */

    

rabianr / laravel-validation-japanese example snippets


use Rabianr\Validation\Japanese\Rules\Hiragana;

$validator = Validator::make($request->all(), [
    'title' => [
        '

use Rabianr\Validation\Japanese\Rules\Hiragana;
use Rabianr\Validation\Japanese\Rules\Kanji;

$validator = Validator::make($request->all(), [
    'title' => [
        '

use Rabianr\Validation\Japanese\Middleware\TrimStrings
sh
php artisan vendor:publish --tag="japaneseValidation"