fahlgrendigital/tools-for-statamic

There is no license information available for the latest version (0.12) of this package.

Various tools commonly used in our Statamic projects.

0.12 2024-11-14 23:10 UTC

This package is auto-updated.

Last update: 2024-12-14 23:22:19 UTC


README

Various tools commonly used in our Statamic projects.

Modifiers

MakeResource

Converts entries or terms to an api resource. Can be a query or collection.

{{ collection | make_resource | to_json | sanitize }}
{{ query | make_resource | to_json | sanitize }}

ApiRouteList

Converts entries or terms to an array of api routes. Can be a query or collection.

{{ collection | api_route_list | to_json | sanitize }}
{{ query | api_route_list | to_json | sanitize }}

Tags

RandomString

Creates a random string using the Str::random($length) Laravel function. Default length is 20.

{{ random_string }}
{{ random_string length="10" }}