• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Route filter enquiry

#1
Good day all, I'll like to know if the route filter can take multiple filter. 

Example
PHP Code:
$routes->group('admin', ['filter' => 'auth:staff|role:admin,superadmin'], function($routes) {
 
   ...
}); 

The "|" separates the two filters.
Reply

#2
This is not currently supported. Filters is looking only for the name separated by a colon:
https://github.com/codeigniter4/CodeIgni...s.php#L294

If you'd like to work up a PR for this I'm sure the devs would review it.
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.