Skip to content

Global Template Variables

objectivehtml edited this page Dec 20, 2014 · 9 revisions

Overview

The follow are the global variables that are available in every field in Postmaster. Most of the parsing in Postmaster is handles by parcel type and notification type, but these are variables that are globally available.

Last Sent

The date the parcel or notification was last sent. If no parcel or notification has been sent, then this variable will return false. If the parcel or notification has been sent, then this variable will Carbon\Carbon date object. Find the Carbon\Carbon documentation here:

https://github.com/briannesbitt/Carbon

{% if lastSent %}
    Do something if has sent...
{% endif %}

{{ lastSent }}
{{ lastSent.format('Y-m-d H:i:s') }}