public function validate(Request $request)
    {
        $prefix = $this->filterAndExplode($this->prefix);

        $path = $this->filterAndExplode($request->getPathInfo());

        return ! \is_null($this->prefix) && $prefix == \array_slice($path, 0, \count($prefix));
    }
public function validate(Request $request)
    {
        $prefix = $this->filterAndExplode($this->prefix);

        $path = $this->filterAndExplode($request->getPathInfo());

        return ! \is_null($this->prefix) && $prefix == \array_slice($path, 0, \count($prefix));
    }
public function validate ( Request $ request ) { $ prefix = $ this -> filterAndExplode ( $ this -> prefix ) ; $ path = $ this -> filterAndExplode ( $ request -> getPathInfo ( ) ) ; return ! \ is_null ( $ this -> prefix ) && $ prefix == \ array_slice ( $ path , 0 , \ count ( $ prefix ) ) ; }
Validate the request has a prefix and if it matches the configured
API prefix.

@param \Illuminate\Http\Request $request

@return bool
Validate the request has a prefix and if it matches the configured API prefix .