| 1 | <?php |
||
| 13 | class MiddlewareServiceProvider extends PortMiddlewareServiceProvider |
||
| 14 | { |
||
| 15 | |||
| 16 | protected $middleware = [ |
||
| 17 | |||
| 18 | ]; |
||
| 19 | |||
| 20 | protected $middlewareGroups = [ |
||
| 21 | 'web' => [ |
||
| 22 | |||
| 23 | ], |
||
| 24 | 'api' => [ |
||
| 25 | |||
| 26 | ], |
||
| 27 | ]; |
||
| 28 | |||
| 29 | protected $routeMiddleware = [ |
||
| 30 | // Hello API App Authentication middleware for third party apps access on behalf of users |
||
| 31 | 'app.auth' => ApplicationAuthentication::class, |
||
| 32 | ]; |
||
| 33 | |||
| 34 | /** |
||
| 35 | * Perform post-registration booting of services. |
||
| 36 | */ |
||
| 37 | public function boot() |
||
| 41 | |||
| 42 | /** |
||
| 43 | * Register anything in the container. |
||
| 44 | */ |
||
| 45 | public function register() |
||
| 49 | } |
||
| 50 |