Bagisto Forum

    Bagisto

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

    Target [Proimage\Contact\Contracts\Contact] is not instantiable while building

    Bug Report
    2
    2
    878
    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.
    • K
      kishnbupadhyaya last edited by

      Hi Bagisto,

      I have created a package for contact form to store data in database and show in admin side. for this i have followed your code structure and standards. after that i face this error. can you please help me on this.

      i get this error:- Target [Proimage\Contact\Contracts\Contact] is not instantiable while building

      Thank you,
      Kishan Upadhyay

      1 Reply Last reply Reply Quote 0
      • R
        RK REZA last edited by

        Did you add your model in config/concord.php?

        If not then add it like this

        \Proimage\Contact\Providers\ModuleServiceProvider::class,
        

        And make sure you have "implements" your Contract in your model.
        Like :

        class Contact extends Model implements ContactContract{
        
        }
        
        1 Reply Last reply Reply Quote 1
        • First post
          Last post