Apply filter for all functions inside a controller |
(08-20-2020, 02:18 AM)eleumas Wrote:(08-19-2020, 12:08 PM)mlurie Wrote:(08-17-2020, 04:25 AM)eleumas Wrote: Hi! I created a filter for auth but i would like apply this filter for all methods inside the controller. Auto-routing only works if you include the class name as part of the path. If you don't want the class name (group name) in the URL, you will need to manually specify the Controller\method like this: PHP Code: $routes->group('mygroup', ['filter' => 'auth'], function($routes) { |
Messages In This Thread |
Apply filter for all functions inside a controller - by eleumas - 08-17-2020, 04:25 AM
RE: Apply filter for all functions inside a controller - by mlurie - 08-19-2020, 12:08 PM
RE: Apply filter for all functions inside a controller - by eleumas - 08-20-2020, 02:18 AM
RE: Apply filter for all functions inside a controller - by mlurie - 08-20-2020, 07:14 AM
|