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

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

See 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() { ...

Sign in to participate in this thread!


Your banner here too?

SynRJ synrj Joined 3 Sep 2014


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.

© 2024 - All rights reserved.