app/Api/V1/Controllers/SignUpController.php
/**
     * Save user activation token and email to database
     *
     * @param string $email
     * @param string $userSlug
     *
     * @return string $token
     *
     */
Save user activation token and email to database
@param string $email
@param string $userSlug

@return string $token
Save user activation token and email to database @param string $email @param string $userSlug @return string $token
protected function saveActivation($email, $userSlug)
    {
        $data = [
            'email' => $email,
            'token' => $this->generateActivateToken($userSlug)
        ];
        $accountActivation = new AccountActivation($data);
        $accountActivation->save();
        return $data['token'];
    }
protected function saveActivation ( $ email , $ userSlug ) { $ data = [ 'email' => $ email , 'token' => $ this -> generateActivateToken ( $ userSlug ) ] ; $ accountActivation = new AccountActivation ( $ data ) ; $ accountActivation -> save ( ) ; return $ data [ 'token' ] ; }
Save user activation token and email to database
 @param string $email
 @param string $userSlug
Save user activation token and email to database @param string $email @param string $userSlug