I've done that, but with patch and delete aswell.
$this->beforeFilter('csrf', array('on' => array('post', 'put', 'patch', 'delete')));
Works for me.
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
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community