PHP code example of aminevsky / laravel-validation-rule-formatter
1. Go to this page and download the library: Download aminevsky/laravel-validation-rule-formatter 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/ */
aminevsky / laravel-validation-rule-formatter example snippets
class TodoController extends Controller
{
const TITLE_MAX_LENGTH = 1000;
public function store(Request $request)
{
$request->validate([
'title' => ['
class TodoController extends Controller
{
const TITLE_MAX_LENGTH = 1000;
public function store(Request $request)
{
// Add validation rules.
$rules = ValidationRuleFormatter::addRule('title', ' // ...
}
}