public function update() { // Create a new token each time the token is saved $this->token = $this->create_token(); return parent::save(); }