This is solved.
I realised that "username" is a custom column name. I also had to change from using arrays to lay out the validation rules, to using strings. {{$id}} is replaced by the actual id.
public static $rules = [
'email' => 'required|max:100|unique:users,email,{{$id}}',
'username' => 'required|max:32|unique:users,username,{{$id}}',
'password' => 'required|alpha_num|between:4,8|confirmed',
'password_confirmation' => 'required', 'between:4,8'
];
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community