Radical Design Course by Jack McDade

From the creator of Statamic

Learn how to make your websites standout and be remembered.

For a software dev like me who has no idea how to create a cute hand-drawn dashed line, this course just 100% works.

— Ira Zayats, Developer

pathinfo Modifier

Get information about a file path.

path: '/local/file/example.pdf'
{{ path | pathinfo }}
{{ path | pathinfo('extension') }}
{{ Statamic::modify($path)->pathinfo() }}
{{ Statamic::modify($path)->pathinfo('extension') }}
[
'dirname' => '/local/file',
'basename' => 'example.pdf',
'filename' => 'example',
'extension' => 'pdf',
]
pdf
Docs feedback

Submit improvements, related content, or suggestions through Github.

Betterify this page →