class TwillTransString implements Stringable, JsonSerializable (View source)

TwillTransString is a wrapper around the trans function.

This is made so that translations are resolved at render time rather than call time. This ensures the correct language is being used regardless of where the string is introduced.

Methods

__construct(string $key, array $replace = [])

No description

__toString()

No description

string
jsonSerialize()

No description

Details

__construct(string $key, array $replace = [])

No description

Parameters

string $key
array $replace

__toString()

No description

string jsonSerialize()

No description

Return Value

string