csrf_token
<?php $token = csrf_token();
<?php function csrf_field() { return new HtmlString('<input type="hidden" name="_token" value="'.csrf_token().'" autocomplete="off">'); } }