-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Description
In Laravel 5.1 we can use $this->validate(...) method in a Controller, like this:
public function postLogin(Request $request)
{
$this->validate($request, [
'username' => 'required',
'password' => 'required',
]);
// ...
}
But if input is invalid the package breaks routing.
I have seen that the problem is solved for FormRequest (#462).
I think that can be solved overriding "validate" method of Illuminate\Foundation\Validation\ValidatesRequests ?
Is this the best approach?
Metadata
Metadata
Assignees
Labels
No labels