lundi 24 octobre 2016

Form validation is not displaying results on laravel

My form validation was not displaying the error on posts/create .I google the solution and found that
Route::group(['middleware' => 'web'], function() { Route::resource('/posts','PostsController'); }); be changed to
Route::group(['middlewareGroups' => 'web'], function() { oute::resource('/posts','PostsController'); });
I did that and the problem is solved now .I want to ask is it a good practise to change it like this ? Also if I am removing this line from my routes it is working Route::group(['middleware' => 'web'], function() { Can anyone tell me what is actually happening ?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire