How To Add Filter On Specified HTTP Method and Controller in Routes.php? |
What I've tried to achieve is add filter on specified http method and controller. Like:
PHP Code: $rotues->get('/', 'Home::index', ['filter' => 'user']); But when I call the HTTP GET method, the filter is always use admin while I specified that to use user. How could I achieve this? Thanks. |
Messages In This Thread |
How To Add Filter On Specified HTTP Method and Controller in Routes.php? - by simonickalexs - 03-06-2021, 03:34 AM
RE: How To Add Filter On Specified HTTP Method and Controller in Routes.php? - by iRedds - 03-06-2021, 08:35 AM
RE: How To Add Filter On Specified HTTP Method and Controller in Routes.php? - by IvanBell - 03-06-2021, 08:53 AM
RE: How To Add Filter On Specified HTTP Method and Controller in Routes.php? - by simonickalexs - 03-07-2021, 06:28 PM
RE: How To Add Filter On Specified HTTP Method and Controller in Routes.php? - by iRedds - 03-08-2021, 12:19 AM
|