Open imanbahmani opened 2 months ago
please help me about this
i have the same problem @vivek-webkul ?
installing using composer i get
Symfony\Component\ErrorHandler\Error\FatalError
Declaration of Webkul\GraphQLAPI\Models\CatalogRule\CatalogRule::catalog_rule_products() must be compatible with Webkul\CatalogRule\Models\CatalogRule::catalog_rule_products(): Illuminate\Database\Eloquent\Relations\HasMany
at vendor\bagisto\graphql-api\src\Models\CatalogRule\CatalogRule.php:14
10▕ {
11▕ /**
12▕ * Get the Catalog rule Product that owns the catalog rule.
13▕ */
➜ 14▕ public function catalog_rule_products()
15▕ {
16▕ return $this->hasMany(CatalogRuleProductProxy::modelClass());
17▕ }
18▕
Whoops\Exception\ErrorException
Declaration of Webkul\GraphQLAPI\Models\CatalogRule\CatalogRule::catalog_rule_products() must be compatible with Webkul\CatalogRule\Models\CatalogRule::catalog_rule_products(): Illuminate\Database\Eloquent\Relations\HasMany
at vendor\bagisto\graphql-api\src\Models\CatalogRule\CatalogRule.php:14
10▕ {
11▕ /**
12▕ * Get the Catalog rule Product that owns the catalog rule.
13▕ */
➜ 14▕ public function catalog_rule_products()
15▕ {
16▕ return $this->hasMany(CatalogRuleProductProxy::modelClass());
17▕ }
18▕
1 vendor\filp\whoops\src\Whoops\Run.php:510
Whoops\Run::handleError("Declaration of Webkul\GraphQLAPI\Models\CatalogRule\CatalogRule::catalog_rule_products() must be compatible with Webkul\CatalogRule\Models\CatalogRule::catalog_rule_products(): Illuminate\Database\Eloquent\Relations\HasMany", "C:\Users\ahmed\Herd\bagisto\vendor\bagisto\graphql-api\src\Models\CatalogRule\CatalogRule.php")
2 [internal]:0
Whoops\Run::handleShutdown()
PHP Fatal error: Declaration of Webkul\GraphQLAPI\Models\CatalogRule\CatalogRule::catalog_rule_products() must be compatible with Webkul\CatalogRule\Models\CatalogRule::catalog_rule_products(): Illuminate\Database\Eloquent\Relations\HasMany in C:\Users\ahmed\Herd\bagisto\vendor\bagisto\graphql-api\src\Models\CatalogRule\CatalogRule.php on line 14
Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 255
@AHMED-GAMAL-AG, I have checked and there is no such issue if you use Bagisto v2.0.0 and GraphQL v2.0.0, all is working fine. APIs are not compatible with the latest version of bagisto, The Team is working on it and will provide the updated APIs soon.
@imanbahmani, The Team is working on it and will provide the updated APIs soon.
@imanbahmani, The Team is working on it and will provide the updated APIs soon.
It will be fully updated in about two weeks?
@imanbahmani, In two weeks, we will update the front end completely.
When will this version be released?
When will this version 2.1.2 be released?
I have version 2.1.2 and I'm having trouble installing it through Composer I wanted to know when a version compatible with this version will be released?