Adding CSRF filter to all route

Submitted by milon - 9 years ago

By this line adding to the app/routes.php file, you can apply 'csrf' filter to all routes

# CSRF Filter
Route::when('*', 'csrf', ['post', 'put', 'patch', 'delete']);