Bagisto Forum

    Bagisto

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    ShowPriceAfterLogin: Composer dump-autoload failed

    Bug Report
    2
    4
    308
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R
      raj.g last edited by

      While setup the extension, the composer dump-autoload is failing with following error

      In Container.php line 1126:
      Target [Webkul\ShowPriceAfterLogin\Contracts\showPriceAfterLogin] is not instantiable while building [Webkul\ShowPriceAfterLogin\Providers\ShowPriceAfterLoginServiceProvider, Webkul\ShowPriceAfterLogin\ShowPriceAfterLogin].

      1 Reply Last reply Reply Quote 0
      • Rishabh-Webkul
        Rishabh-Webkul last edited by

        Hello @raj-g

        Did you register your module in app.php & composer.json kindly confirm ?

        Thanks & Best Regards

        R 1 Reply Last reply Reply Quote 0
        • R
          raj.g @Rishabh-Webkul last edited by

          @Rishabh-Webkul
          Yes, I did registered it on App.php and Composer.json file.

          To Resolve that issue, I need to add following line on ShowPriceAfterLogin Provider

          $this->app->bind(ShowPriceAfterLoginContract::class, ShowPriceAfterLogin::class);
          
          1 Reply Last reply Reply Quote 0
          • Rishabh-Webkul
            Rishabh-Webkul last edited by

            Hello @raj-g

            So, is your issue resolved now?

            Kindly confirm

            Thanks & Regards

            1 Reply Last reply Reply Quote 0
            • First post
              Last post