bagisto / headless-ecommerce

Laravel Headless eCommerce APIs allow you to experience seamless and easily scalable storefront performance. An open-source and GraphQL based Rest API Laravel platform delivering ultra-fast, dynamic, and personalized shopping experiences.
https://bagisto.com/en/headless-ecommerce/
MIT License
71 stars 43 forks source link

Interface "Tymon\JWTAuth\Contracts\JWTSubject" not found #56

Closed naramwork closed 1 year ago

naramwork commented 2 years ago

I'm stuck in this I follow the steps on the docs and always lead to this error

Screen Shot 2022-04-13 at 11 43 32 AM

should I install jwt manually ?

devlamine commented 2 years ago

I have same error and when I install manualy I have this message :

eclaration of Webkul\GraphQLAPI\Models\User\Admin::getJWTCustomClaims() must be compatible with Webkul\User\Models\Admin::getJWTCustomClaims(): array

  at vendor/bagisto/graphql-api/src/Models/User/Admin.php:53
     49▕      * Return a key value array, containing any custom claims to be added to the JWT.
     50▕      *
     51▕      * @return array
     52▕      */
  ➜  53▕     public function getJWTCustomClaims()
     54▕     {
     55▕         return [];
     56▕     }
     57▕ }
vivek-webkul commented 2 years ago

Hi @naramwork & @devlamine Please mention your Bagisto version also.

devlamine commented 2 years ago

hi, @vivek-webkul v1.4.1

vivek-webkul commented 2 years ago

Hi @devlamine

Currently, this project supports Bagisto v1.3.x https://github.com/bagisto/headless-ecommerce#1-requirements

We will provide support for 1.4.x very soon.

rzuzo commented 2 years ago

Hello, are there maybe any updates for the 1.4.x support?

We are setting up the bagisto laravel shop with a vue storefront and encountered the same error as mentioned by @naramwork .

Thanks

ashishkumar-webkul commented 1 year ago

Bagisto - V1.4.3

Checked and Found that the Issue is Fixed and Just what is need to be done just after the bagisto installation run the command

composer require bagisto/graphql-api:dev-main

Video/Screenshot

https://user-images.githubusercontent.com/92721837/189622744-718fcb3c-5369-466f-91f8-bde2b3e2db90.mp4