foothing/laravel-wrappr

View on GitHub
src/Foothing/Wrappr/Middleware/CheckPath.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php namespace Foothing\Wrappr\Middleware;

class CheckPath extends AbstractMiddleware {

    function handle($request, \Closure $next) {

        if ( ! $this->manager->checkPath($request->method(), $request->path()) ) {
            return $this->error($request);
        }

        return $next($request);

    }

}