PHP code example of hareku / laravel-rule-getter
1. Go to this page and download the library: Download hareku/laravel-rule-getter 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/ */
hareku / laravel-rule-getter example snippets
'providers' => [
Hareku\LaravelRule\ValidationRuleServiceProvider::class,
];
// validation-rules.php
return [
'user' => [
'name' => 'ssword' => 'in:1|max:20'
rule('user.email') // '