If it isn't working, try to wrap the resource in a group. It's should do the trick.
Route::group(['before' => 'csrf'], function() {
Route::resource('foo', 'FooController');
});
Thanx, it does the trick, but i was wonder if i could implement the filter into the resources. Cheers.
You can specify filters in the controller and you have a greater control over them, applying them to selected functions or http methods, etc.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community