Call to undefined function AppHttpControllersbcmul() in laravel 5.5












1















Here is My code bcmul is undefined but my concern bcmul is php
function using for Multiply two arbitrary precision numbers.
but laravel show undefined why?



  public function confirmBtcRequest(Request $request,$id){

$getBalanceInfo = $this->bitcoin->get_balance();
$sendAmount = bcmul($getBalanceInfo->data->available_balance, '0.01', 8);
print_r($sendAmount);
die;
}


if You have any idea please respond me.










share|improve this question

























  • share your Route,view and model if any.

    – Prathamesh Doke
    Nov 21 '18 at 13:03






  • 1





    You might need to install BCMath php.net/manual/en/bc.installation.php

    – hktang
    Nov 21 '18 at 13:07






  • 1





    ok i try..to install bcmath

    – raushan kumar
    Nov 21 '18 at 13:08
















1















Here is My code bcmul is undefined but my concern bcmul is php
function using for Multiply two arbitrary precision numbers.
but laravel show undefined why?



  public function confirmBtcRequest(Request $request,$id){

$getBalanceInfo = $this->bitcoin->get_balance();
$sendAmount = bcmul($getBalanceInfo->data->available_balance, '0.01', 8);
print_r($sendAmount);
die;
}


if You have any idea please respond me.










share|improve this question

























  • share your Route,view and model if any.

    – Prathamesh Doke
    Nov 21 '18 at 13:03






  • 1





    You might need to install BCMath php.net/manual/en/bc.installation.php

    – hktang
    Nov 21 '18 at 13:07






  • 1





    ok i try..to install bcmath

    – raushan kumar
    Nov 21 '18 at 13:08














1












1








1








Here is My code bcmul is undefined but my concern bcmul is php
function using for Multiply two arbitrary precision numbers.
but laravel show undefined why?



  public function confirmBtcRequest(Request $request,$id){

$getBalanceInfo = $this->bitcoin->get_balance();
$sendAmount = bcmul($getBalanceInfo->data->available_balance, '0.01', 8);
print_r($sendAmount);
die;
}


if You have any idea please respond me.










share|improve this question
















Here is My code bcmul is undefined but my concern bcmul is php
function using for Multiply two arbitrary precision numbers.
but laravel show undefined why?



  public function confirmBtcRequest(Request $request,$id){

$getBalanceInfo = $this->bitcoin->get_balance();
$sendAmount = bcmul($getBalanceInfo->data->available_balance, '0.01', 8);
print_r($sendAmount);
die;
}


if You have any idea please respond me.







laravel bitcoin






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 21 '18 at 13:04







raushan kumar

















asked Nov 21 '18 at 12:59









raushan kumarraushan kumar

6911




6911













  • share your Route,view and model if any.

    – Prathamesh Doke
    Nov 21 '18 at 13:03






  • 1





    You might need to install BCMath php.net/manual/en/bc.installation.php

    – hktang
    Nov 21 '18 at 13:07






  • 1





    ok i try..to install bcmath

    – raushan kumar
    Nov 21 '18 at 13:08



















  • share your Route,view and model if any.

    – Prathamesh Doke
    Nov 21 '18 at 13:03






  • 1





    You might need to install BCMath php.net/manual/en/bc.installation.php

    – hktang
    Nov 21 '18 at 13:07






  • 1





    ok i try..to install bcmath

    – raushan kumar
    Nov 21 '18 at 13:08

















share your Route,view and model if any.

– Prathamesh Doke
Nov 21 '18 at 13:03





share your Route,view and model if any.

– Prathamesh Doke
Nov 21 '18 at 13:03




1




1





You might need to install BCMath php.net/manual/en/bc.installation.php

– hktang
Nov 21 '18 at 13:07





You might need to install BCMath php.net/manual/en/bc.installation.php

– hktang
Nov 21 '18 at 13:07




1




1





ok i try..to install bcmath

– raushan kumar
Nov 21 '18 at 13:08





ok i try..to install bcmath

– raushan kumar
Nov 21 '18 at 13:08












2 Answers
2






active

oldest

votes


















1














According to PHP documentation, BCMath is not available by default with PHP7 on Linux servers. Not personally verified though.




bcmath ist not installed automatically with php 7 on linux (ubuntu
server) You have to use: sudo apt-get install php-bcmath




Source: http://php.net/manual/en/bc.installation.php






share|improve this answer































    1














    bcmul() is a function in php. This error means that the php version on your server has not been compiled with the necessary library, called BC Math (http://php.net/manual/en/book.bc.php). You need to talk to your server admin about this.






    share|improve this answer























      Your Answer






      StackExchange.ifUsing("editor", function () {
      StackExchange.using("externalEditor", function () {
      StackExchange.using("snippets", function () {
      StackExchange.snippets.init();
      });
      });
      }, "code-snippets");

      StackExchange.ready(function() {
      var channelOptions = {
      tags: "".split(" "),
      id: "1"
      };
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function() {
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled) {
      StackExchange.using("snippets", function() {
      createEditor();
      });
      }
      else {
      createEditor();
      }
      });

      function createEditor() {
      StackExchange.prepareEditor({
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: true,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      bindNavPrevention: true,
      postfix: "",
      imageUploader: {
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      },
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      });


      }
      });














      draft saved

      draft discarded


















      StackExchange.ready(
      function () {
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53412599%2fcall-to-undefined-function-app-http-controllers-bcmul-in-laravel-5-5%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      1














      According to PHP documentation, BCMath is not available by default with PHP7 on Linux servers. Not personally verified though.




      bcmath ist not installed automatically with php 7 on linux (ubuntu
      server) You have to use: sudo apt-get install php-bcmath




      Source: http://php.net/manual/en/bc.installation.php






      share|improve this answer




























        1














        According to PHP documentation, BCMath is not available by default with PHP7 on Linux servers. Not personally verified though.




        bcmath ist not installed automatically with php 7 on linux (ubuntu
        server) You have to use: sudo apt-get install php-bcmath




        Source: http://php.net/manual/en/bc.installation.php






        share|improve this answer


























          1












          1








          1







          According to PHP documentation, BCMath is not available by default with PHP7 on Linux servers. Not personally verified though.




          bcmath ist not installed automatically with php 7 on linux (ubuntu
          server) You have to use: sudo apt-get install php-bcmath




          Source: http://php.net/manual/en/bc.installation.php






          share|improve this answer













          According to PHP documentation, BCMath is not available by default with PHP7 on Linux servers. Not personally verified though.




          bcmath ist not installed automatically with php 7 on linux (ubuntu
          server) You have to use: sudo apt-get install php-bcmath




          Source: http://php.net/manual/en/bc.installation.php







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 21 '18 at 13:08









          hktanghktang

          9941530




          9941530

























              1














              bcmul() is a function in php. This error means that the php version on your server has not been compiled with the necessary library, called BC Math (http://php.net/manual/en/book.bc.php). You need to talk to your server admin about this.






              share|improve this answer




























                1














                bcmul() is a function in php. This error means that the php version on your server has not been compiled with the necessary library, called BC Math (http://php.net/manual/en/book.bc.php). You need to talk to your server admin about this.






                share|improve this answer


























                  1












                  1








                  1







                  bcmul() is a function in php. This error means that the php version on your server has not been compiled with the necessary library, called BC Math (http://php.net/manual/en/book.bc.php). You need to talk to your server admin about this.






                  share|improve this answer













                  bcmul() is a function in php. This error means that the php version on your server has not been compiled with the necessary library, called BC Math (http://php.net/manual/en/book.bc.php). You need to talk to your server admin about this.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Nov 21 '18 at 13:08









                  MD. Jubair MizanMD. Jubair Mizan

                  1,1161614




                  1,1161614






























                      draft saved

                      draft discarded




















































                      Thanks for contributing an answer to Stack Overflow!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid



                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.


                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function () {
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53412599%2fcall-to-undefined-function-app-http-controllers-bcmul-in-laravel-5-5%23new-answer', 'question_page');
                      }
                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      這個網誌中的熱門文章

                      Xamarin.form Move up view when keyboard appear

                      Post-Redirect-Get with Spring WebFlux and Thymeleaf

                      Anylogic : not able to use stopDelay()