Dmyers\Storage\Adapter\Base::render PHP Method

render() public method

Render a file from storage to the browser.
public render ( string $path ) : Response
$path string The path to the file to render.
return Response
    public function render($path)
    {
        $file = static::get($path);
        $mime = static::mime($path);
        return \Response::make($file, 200, array('Content-Type' => $mime));
    }