Radical Design Course by Jack McDade

From the creator of Statamic

Learn how to make your websites standout and be remembered.

Taking your approach on designing things actually makes it fun, more natural, and overall easier.

— Dominik, Developer

post

An array of sanitized POST variables that come from any form data present for a POST to the current URL. It can be used as a tag pair with access to all your data or as a single tag to access variables directly. A counterpart to {{ get }}.

<form method="post">
<input type="hidden" name="_token" value="csrftokenhere" />
<input type="text" name="first_name" value="Niles">
<input type="text" name="last_name" value="Peppertrout">
<button>Submit</button>
</form>
{{ post }}
{{ first_name }} {{ last_name }}
{{ /post }}
 
Mr. {{ post:last_name }}
{{ request()->post('first_name') }} {{ request()->post('last_name') }}
 
Mr. {{ request()->post('last_name') }}
Niles Peppertrout
 
Mr. Peppertrout
Docs feedback

Submit improvements, related content, or suggestions through Github.

Betterify this page →