I\'m trying to create customized messages for validation in Laravel 5. Here is what I have tried so far:
$messages = [
\'required\' => \'Harap bagian
$rules = [
'username' => 'required,unique:Userlogin,username',
'password' => 'required',
'email' => 'required,unique:Userlogin,email'
];
$messages = [
'required' => 'The :attribute field is required.',
'unique' => ':attribute is already used'
];
$request->validate($rules,$messages);
//only if validation success code below will be executed