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())
Docs Feedback
Submit improvements, related content, or suggestions through Github.
Betterify this page