public static function view($route, $view, $data = [], $name = null, $middleware = null)
    {
        $target = function () use ($view, $data) {
            return view($view, $data);
        };

        return static::get($route, $target, $name, $middleware);
    }
public static function view($route, $view, $data = [], $name = null, $middleware = null)
    {
        $target = function () use ($view, $data) {
            return view($view, $data);
        };

        return static::get($route, $target, $name, $middleware);
    }
public static function view ( $ route , $ view , $ data = [ ] , $ name = null , $ middleware = null ) { $ target = function ( ) use ( $ view , $ data ) { return view ( $ view , $ data ) ; } ; return static :: get ( $ route , $ target , $ name , $ middleware ) ; }
Return a view for this route.

@param string $route Request route
@param mixed $view View template
@param mixed $data View data
@param string $name (Optional) name of route
@param string|array $middleware (Optional) Middleware

@return Route
@throws Exception
Return a view for this route .