public function create() { // Set hash of the user agent $this->user_agent = sha1(Request::$user_agent); // Create a new token each time the token is saved $this->token = $this->create_token(); return parent::save(); }