Bagisto Forum

    Bagisto

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

    Found Error while adding parameters Repository on Controller Class

    General Discussion
    2
    3
    127
    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.
    • T
      Teddi last edited by

      I got error like this

      "Target [\Contracts\PlanLimitation] is not instantiable while building [\Http\Controllers\Admin\PlanLimitationController]."

      This error come out when i tried to adding repository to my construct function in my controller
      93068383-c343-4590-a25b-000f2fa16d62-image.png

      can someone help me?

      1 Reply Last reply Reply Quote 0
      • M
        maSocraM last edited by

        Hi!

        What's the content of file "Contracts/PlanLimitation.php" and model() function inside the file "Repositories/PlanLimitationRepostory.php"?

        1 Reply Last reply Reply Quote 0
        • T
          Teddi last edited by

          thanks for replying, i just miss one backslash in herefc8a1c34-ac4b-416d-8993-bdc338c344ea-image.png

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