public function isCrsf($token) { if ($this->session->exists('CRSF_TOKEN') && $this->session->get('CRSF_TOKEN') === Input::item($token)) { $this->session->remove("CRSF_TOKEN"); return true; } else { $this->session->remove("CRSF_TOKEN"); return false; } }
/** * retorn si exite algo por ge oh post */ public function method($m = 'post') { return Input::exists($m); }