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

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

See http://stackoverflow.com/questions/23224096/how-to-apply-multiple-filters-on-laravel-4-route-group 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!

Eventy

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?

Laravel.io

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

© 2024 Laravel.io - All rights reserved.