I have some trouble with validation in Laravel 5.2 When i try validate request in controller like this
$this->validate($request, [ \'title
This will work
Route::group(['middlewareGroups' => ['web']], function () { // Add your routes here });
as well as this also works
Route::post('location',array( 'as'=>'location', 'middlewareGroups'=>'web', 'uses'=>'myController@function' ));