app/Http/Requests/RegisterRequest.php
/**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
Get the validation rules that apply to the request.
@return array
Get the validation rules that apply to the request . @return array
public function rules()
    {
        return [
            'nim'                 => 'required|unique:users',
            'username'            => 'required||unique:users',
            'nama_lengkap'        => 'required',
            'password'            => 'required',
            'konfirmasi_password' => 'required|same:password|min:5',
        ];     
    }
public function rules ( ) { return [ 'nim' => 'required|unique:users' , 'username' => 'required||unique:users' , 'nama_lengkap' => 'required' , 'password' => 'required' , 'konfirmasi_password' => 'required|same:password|min:5' , ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .