# fluent-cart/1.4.1/config/middleware.php

FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler, version 1.4.1. 39 lines.

- Page: https://pluginprobe.com/plugins/fluent-cart/1.4.1/code/config/middleware.php
- Raw: https://pluginprobe.com/plugins/fluent-cart/1.4.1/raw/config/middleware.php
- Modified: 2025-11-20T13:11:16+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/fluent-cart/1.4.1/code/config/middleware.php#L10-L20`.

```php
<?php if ( ! defined( 'ABSPATH' ) ) exit; ?>
<?php
/**
 * This is an example of using middleware in routes. The global middleware group will be
 * applied to all routes. The before middleware will be executed before the policy
 * handler ran, and the after middleware group will be executed right after the main
 * callback (the main route handler) ran without any exceptions/interruptions.
 * The route middleware will be run if any middleware is explicitly used.
 */

/**
 * Note: Please use class-based middleware when you need more than a few to keep
 * this confine clean and store the middleware in the Http/Middleware folder.
 */

/**
 * How to use route middleware:
 *
 * $router->namespace(...)->before('auth')->after('loger')->group(...);
 * $router->before('auth')->after('loger')->get(...);
 */

return [
    'global' => [
        'before' => [

        ],
        'after' => [

        ]
    ],
    'route' => [
        'before' => [
        ],
        'after' => [

        ],
    ]
];
```
