Skip to content

Target [Lcobucci\JWT\Parser] is not instantiable while building [Laravel\Passport\PersonalAccessTokenFactory] #1384

@Gams101

Description

@Gams101
  • Passport Version: 10.0
  • Laravel Version: 8.16.1
  • PHP Version: 7.4.13
  • Database Driver & Version: MySQL 5.7.24

Description:

First of all I would like to thank you guys for this wonderful authentication package for laravel, it's my first time trying out this package and I followed the installation guide at https://laravel.com/docs/8.x/passport but when this code block in my controller signup action it throws the error in the title:

$token = $user->createToken('authToken')->accessToken;

Here's the snippet of my code for signup action:
image

Steps To Reproduce:

  1. Fresh Laravel 8 installation.
  2. Followed Laravel Passport Installation guide.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions