ray Modifier

Send a variable to Spatie's Ray app.

You can pass a string with a color name as parameter to get it colored in Ray. Note that you need to have the spatie/laravel-ray package installed.

{{ your_field | ray }}
{{ your_field | ray('red'} }
@php(Statamic::modify($your_field)->ray())
@php(Statamic::modify($your_field)->ray('red'))
 
-- or --
 
@php(ray($your_field))
@php(ray($your_field)->red())
HR: Section
Related Modifiers

These similar modifiers may aid you on your quest.

rotate-vertical

Modifiers

HR: Section
Docs feedback

Submit improvements, related content, or suggestions through Github.

Betterify this page →