fahlgrendigital/tools-for-statamic

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

Various tools commonly used in our Statamic projects.

0.11 2024-07-11 17:49 UTC

This package is auto-updated.

Last update: 2024-10-11 18:16:39 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" }}