Bagisto Forum

    Bagisto

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

    Target [Webkul\Attribute\Contracts\Attribute] is not instantiable.

    Knowledge Base
    3
    4
    421
    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.
    • V
      vaida.prateek28 last edited by

      Target [Webkul\Attribute\Contracts\Attribute] is not instantiable. (View: /var/www/html/bagisto/packages/Webkul/Admin/src/Resources/views/catalog/products/field-types/text.blade.php) (View: /var/www/html/bagisto/packages/Webkul/Admin/src/Resources/views/catalog/products/field-types/text.blade.php)

      i am facing this error after adding product.

      i already have \Webkul\Attribute\Providers\ModuleServiceProvider::class, in config/concord.php
      i have tried composer dump-autoload.
      laravel version: 9.52.4
      php version: 8.2.3
      bagisto version: v1.4.3

      please help

      1 Reply Last reply Reply Quote 0
      • ashish2409
        ashish2409 last edited by

        Hello There,

        Have you entered the details related to the Service Provider in the below path. Please check and update us so that we can help you with better response.
        Link - https://github.com/bagisto/bagisto/blob/master/packages/Webkul/Product/src/Providers/ModuleServiceProvider.php#L10

        V 1 Reply Last reply Reply Quote 0
        • V
          vaida.prateek28 @ashish2409 last edited by ghermans

          @ashish2409 hello, here is the file content

          <?php
          
          namespace Webkul\Product\Providers;
          
          use Webkul\Core\Providers\CoreModuleServiceProvider;
          
          class ModuleServiceProvider extends CoreModuleServiceProvider
          {
              protected $models = [
                  \Webkul\Product\Models\Product::class,
                  \Webkul\Product\Models\ProductAttributeValue::class,
                  \Webkul\Product\Models\ProductFlat::class,
                  \Webkul\Product\Models\ProductImage::class,
                  \Webkul\Product\Models\ProductInventory::class,
                  \Webkul\Product\Models\ProductOrderedInventory::class,
                  \Webkul\Product\Models\ProductReview::class,
                  \Webkul\Product\Models\ProductSalableInventory::class,
                  \Webkul\Product\Models\ProductDownloadableSample::class,
                  \Webkul\Product\Models\ProductDownloadableLink::class,
                  \Webkul\Product\Models\ProductGroupedProduct::class,
                  \Webkul\Product\Models\ProductBundleOption::class,
                  \Webkul\Product\Models\ProductBundleOptionTranslation::class,
                  \Webkul\Product\Models\ProductBundleOptionProduct::class,
                  \Webkul\Product\Models\ProductCustomerGroupPrice::class,
                  \Webkul\Product\Models\ProductVideo::class,
                  \Webkul\Product\Models\ProductReviewImage::class,
              ];
          }
          
          1 Reply Last reply Reply Quote 0
          • sanjay-webkul
            sanjay-webkul last edited by

            Hi there
            Please share this file.

            packages/Webkul/Attribute/src/Providers/ModuleServiceProvider.php
            1 Reply Last reply Reply Quote 0
            • First post
              Last post