Source Code/app/Http/Controllers/SignupController.php
//If Mail Send Then Add Data in Database
If Mail Send Then Add Data in Database
If Mail Send Then Add Data in Database
public function afterEmailSend($id,$sms_code,$email_code,$auth_code){
        try {
            $time = now()->addMinutes(30)->__toString();
            $user = User::where(['id' => $id])
                ->update(['email_verified_at' => null, 'status' => 0, 'exp_time' => $time]);
            $auth = User::insert(['email_code' => $email_code, 'mobile_code' => $sms_code,'auth_code'=>$auth_code,'user_id'=>$id, 'exp_time' => $time]);
            return true;
        } catch (Exception $error) {
            return $error;
        };
    }
public function afterEmailSend ( $ id , $ sms_code , $ email_code , $ auth_code ) { try { $ time = now ( ) -> addMinutes ( 30 ) -> __toString ( ) ; $ user = User :: where ( [ 'id' => $ id ] ) -> update ( [ 'email_verified_at' => null , 'status' => 0 , 'exp_time' => $ time ] ) ; $ auth = User :: insert ( [ 'email_code' => $ email_code , 'mobile_code' => $ sms_code , 'auth_code' => $ auth_code , 'user_id' => $ id , 'exp_time' => $ time ] ) ; return true ; } catch ( Exception $ error ) { return $ error ; } ; }
If Mail Send Then Add Data in Database
If Mail Send Then Add Data in Database