• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Register
  • Login
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
891
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 27 Jul 2019, 08:39

    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 27 Jul 2019, 11:05

      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
      2 out of 2
      • First post
        2/2
        Last post