class Renderer (View source)

Constants

protected DIST

The path to the renderer's distribution files.

Properties

protected Factory $viewFactory

The view factory instance.

protected Listener $listener

The exception listener instance.

protected HtmlErrorRenderer $htmlErrorRenderer

The HTML error renderer instance.

protected BladeMapper $bladeMapper

The Blade mapper instance.

protected string $basePath

The application's base path.

Methods

void
__construct(Factory $viewFactory, Listener $listener, HtmlErrorRenderer $htmlErrorRenderer, BladeMapper $bladeMapper, string $basePath)

Creates a new exception renderer instance.

string
render(Request $request, Throwable $throwable)

Render the given exception as an HTML string.

static string
css()

Get the renderer's CSS content.

static string
js()

Get the renderer's JavaScript content.

Details

void __construct(Factory $viewFactory, Listener $listener, HtmlErrorRenderer $htmlErrorRenderer, BladeMapper $bladeMapper, string $basePath)

Creates a new exception renderer instance.

Parameters

Factory $viewFactory
Listener $listener
HtmlErrorRenderer $htmlErrorRenderer
BladeMapper $bladeMapper
string $basePath

Return Value

void

string render(Request $request, Throwable $throwable)

Render the given exception as an HTML string.

Parameters

Request $request
Throwable $throwable

Return Value

string

static string css()

Get the renderer's CSS content.

Return Value

string

static string js()

Get the renderer's JavaScript content.

Return Value

string

Laravel Cloud is the best place to deploy Laravel, Nuxt, Express, Hono, Node.js, Bun, Go, Flask, Python, and more, with dedicated infrastructure available on AWS through Laravel Private Cloud.