Support the ongoing development of Laravel.io →
Security Requests
Last updated 4 months ago.
0

You could make a go-between-filter to handle the OR.

See http://stackoverflow.com/questions/23224096/how-to-apply-multi... for an example.

Snip from that page ...

Route::filter('csrf-or-auth', function () 
{
    $value = call_user_func('csrfFilter');
    if ($value) return $value;
    else return call_user_func('authFilter');
});

Route::group(array('before' => 'csrf-or-auth', function() { ...
0

Sign in to participate in this thread!

Cloudways

Your banner here too?

SynRJ synrj Joined 3 Sep 2014

Moderators

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

Your logo here?

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

© 2022 Laravel.io - All rights reserved.