Customizing The Validation Attributes code example
Example 1: Customizing The Validation Attributes
$niceNames = array(
'first_name' => 'First Name'
);
$validator = Validator::make(Input::all(), $rules);
$validator->setAttributeNames($niceNames);
Example 2: Customizing The Validation Attributes
@if($errors->has())
@foreach ($errors->all() as $error)
- {{ $error }}
@endforeach
@endif