Support the ongoing development of Laravel.io →
Security Input
Last updated 2 years ago.
0

I've done that, but with patch and delete aswell.

$this->beforeFilter('csrf', array('on' => array('post', 'put', 'patch', 'delete')));

Works for me.

Last updated 2 years ago.
0

I'd probably have this a filter, but if you do want to apply the check, it'd probably be best placed in your App::before check in filters.php

Last updated 2 years ago.
0

Sweet. That worked nicely.

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

bangweb bangweb Joined 7 Jul 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.