Answers for "Customizing The Validation Attributes"

PHP
0

Customizing The Validation Attributes

$niceNames = array(
    'first_name' => 'First Name'
);

$validator = Validator::make(Input::all(), $rules);
$validator->setAttributeNames($niceNames);
Posted by: Guest on August-22-2020
0

Customizing The Validation Attributes

@if($errors->has())
  <ul>
  @foreach ($errors->all() as $error)
    <li class="help-inline errorColor">{{ $error }}</li>
  @endforeach
  </ul>
@endif
Posted by: Guest on August-22-2020

Code answers related to "Customizing The Validation Attributes"

Browse Popular Code Answers by Language