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
Requires
- php: ^8.2
- statamic/cms: ^5.0
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" }}