Laravel automatically adds CSRF protection for all POST requests, but what's the best way to add CSRF protection for certain GET request?
For example, by clicking the following link, blog authors could delete their own posts. However, how can we add a CSRF protection over those GET requests? http://my.laravel.app/blog/1/delete
Did you tried this?
Route::group(['before' => 'csrf'], function()
{
Route::resource(...);
});
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community