Ricardo Filho
Ricardo Filho
I solved this way
I have the same doubt as yours
It worked this way for me: protected $rules = [ 'name' => 'required|max:255|unique:departments,name,id' ]; public function update(array $data, $id){ $this->validator->with($data)->setId($id)->passesOrFail(); return $this->repository->update($data, $id); }
This still does not work, when i use $e->getMessage() returns {"error":true,"message":""}
MessageBag returns => MessageBag {#558 #messages: array:1 [ "fk_employee" => array:1 [ 0 => "validation.unique" ] ] #format: ":message"}
How did you guys solve this issue? Overriding function passes didn't work for me.
i'm having the same issue in Chrome Version 58.0.3029.96 (64-bit) / AngularJS v1.6.1 
How this problem was solved? I am facing the same situation. I thought docker was the problem, but then i realize it was something with wsl. I try everything: restarting,...
I fixed adding "src" to root config, that it was empty, angular.json ``` "projectname-e2e": { "root": "src", "sourceRoot": "e2e", } ```
I'm having the same issue, i updated angularJS (1.6.1 => 1.6.6) and material (1.1.4 => 1.1.5) versions and the problem continues. I tested in Chrome, Firefox and MS Edge browsers.