I have some trouble with validation in Laravel 5.2 When i try validate request in controller like this
$this->validate($request, [ \'title
// Controller $this->validateWith([ 'title' => 'required', 'content.*.rate' => 'required', ]); // Blade Template @if ($errors->has('title')) {{ $errors->first('title') }} @endif @if ($errors->has('anotherfied')) {{ $errors->first('anotherfied') }} @endif
Find the documentation.