Welcome Guest, Not a member yet? Register   Sign In
Can I have global filters segmented?
#1

Hi,
My app is divided in Backend and Frontend. Is there a way to use global filters (App\Config\Filters) only for Backend's requests? 
Thanks.
Reply
#2

Use the $filters config instead of $global.

PHP Code:
public filters = [
    
'foo' => ['before' => ['admin/*'], 'after' => ['users/*']],
    
'bar' => ['before' => ['api/*''admin/*']],
]; 
Reply




Theme © iAndrew 2016 - Forum software by © MyBB