public function create(Contracts\RequiresEmailVerification $user)
    {
        $email = $user->getEmailForVerification();

        $this->deleteExisting($user);

        $token = $this->createNewToken();

        $this->getTable()->insert($this->getPayload($email, $token));

        return $token;
    }
public function create(Contracts\RequiresEmailVerification $user)
    {
        $email = $user->getEmailForVerification();

        $this->deleteExisting($user);

        $token = $this->createNewToken();

        $this->getTable()->insert($this->getPayload($email, $token));

        return $token;
    }
public function create ( Contracts \ RequiresEmailVerification $ user ) { $ email = $ user -> getEmailForVerification ( ) ; $ this -> deleteExisting ( $ user ) ; $ token = $ this -> createNewToken ( ) ; $ this -> getTable ( ) -> insert ( $ this -> getPayload ( $ email , $ token ) ) ; return $ token ; }
Create a new token.

@param \Krucas\LaravelUserEmailVerification\Contracts\RequiresEmailVerification $user
@return string
Create a new token .