src/Http/Middleware/Request.php
protected function isAllowed($request)
    {
        try {
            $decrypted = Crypt::decrypt($request->get('key'));
        } catch (DecryptException $e) {
            $decrypted = '';
        }

        return $decrypted == 'opcache' || in_array($this->getRequestIp($request), [$this->getServerIp(), '127.0.0.1', '::1']);
    }
protected function isAllowed($request)
    {
        try {
            $decrypted = Crypt::decrypt($request->get('key'));
        } catch (DecryptException $e) {
            $decrypted = '';
        }

        return $decrypted == 'opcache' || in_array($this->getRequestIp($request), [$this->getServerIp(), '127.0.0.1', '::1']);
    }
protected function isAllowed ( $ request ) { try { $ decrypted = Crypt :: decrypt ( $ request -> get ( 'key' ) ) ; } catch ( DecryptException $ e ) { $ decrypted = '' ; } return $ decrypted == 'opcache' || in_array ( $ this -> getRequestIp ( $ request ) , [ $ this -> getServerIp ( ) , '127.0.0.1' , '::1' ] ) ; }
Check if the request is allowed.

@param $request

@return bool
Check if the request is allowed .