Target [Proimage\Contact\Contracts\Contact] is not instantiable while building
-
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 -
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{ }