protected function getRouteMethodDocBlock($route)
	{
		$routeAction = $route->getAction();
		list($class, $method) = explode('@', $routeAction['uses']);

		$reflectionClass = new ReflectionClass($class);
		$reflectionMethod = $reflectionClass->getMethod($method);

		$comment = $reflectionMethod->getDocComment();

		if ($comment) {
			return($this->docBlockFactory->create($comment));
		}

		return null;
	}
protected function getRouteMethodDocBlock($route)
	{
		$routeAction = $route->getAction();
		list($class, $method) = explode('@', $routeAction['uses']);

		$reflectionClass = new ReflectionClass($class);
		$reflectionMethod = $reflectionClass->getMethod($method);

		$comment = $reflectionMethod->getDocComment();

		if ($comment) {
			return($this->docBlockFactory->create($comment));
		}

		return null;
	}
protected function getRouteMethodDocBlock ( $ route ) { $ routeAction = $ route -> getAction ( ) ; list ( $ class , $ method ) = explode ( '@' , $ routeAction [ 'uses' ] ) ; $ reflectionClass = new ReflectionClass ( $ class ) ; $ reflectionMethod = $ reflectionClass -> getMethod ( $ method ) ; $ comment = $ reflectionMethod -> getDocComment ( ) ; if ( $ comment ) { return ( $ this -> docBlockFactory -> create ( $ comment ) ) ; } return null ; }
Return route method doc block if comments are provided else return null.

@param \Illuminate\Routing\Route $route
@return DocBlock|null
Return route method doc block if comments are provided else return null .