Solution :
$messages = [‘password.regex’ => “Your password must contain 1 lower case character 1 upper case character one number”];
$validator = Validator::make($request->all(), [
’email’ => ‘required|email’,
‘password’ => ‘min:6||regex:/^(?=\S[a-z])(?=\S[A-Z])(?=\S[\d])\S$/’,
], $messages);
if ($validator->fails()) {
$error_msg = $validator->messages()->all();
}
render $error_msg to your view and write following code on view.
@if($error_msg)
-
@foreach ( $error_msg as $key => $value)
- {{ $value }}
@endforeach
@endif
Thanks 🙂
Nice post i like it 100 %. I learn something new and challenging on sites I stumbleupon on a daily basis. Its always helpful to read through articles from other writers and use something from their web sites.
Itís difficult to find experienced people for this topic, however, you sound like you know what youíre talking about! Thanks
This post is very inspiring! cartoon ringtone
Good post. I certainly appreciate this website. Stick with it!
Itís difficult to find educated people in this particular topic, however, you seem like you know what youíre talking about! Thanks
Big Ass Photos – Free Huge Butt Porn, Big Booty Pics
http://images.of.jesus.with-children.touches.miyuhot.com/?madyson
angel dark anal porn anime flash games porn gay porn teens porn grannies jesica simson porn