laravel passport revoke and prune event listener is not doing anything

后端 未结 2 1419
抹茶落季
抹茶落季 2021-02-11 03:22

I\'ve added this two event listeners to my : EventServiceProvider

/**
 * The event listener mappings for the application.
 *
 * @var array
 */
prote         


        
2条回答
  •  后悔当初
    2021-02-11 03:54

    May be because you missed something important to let the passport works find,

    1- Register Passport service provider in the providers array of your config/app.php Laravel\Passport\PassportServiceProvider::class,

    1- you have to add the Laravel\Passport\HasApiTokens trait to your App\User model 2- in your config/auth.php configuration file, you should set the driver option of the api authentication guard to passport

    check this http://www.snippetcase.com/snippet/61/API+Authentication+(Passport)+Laravel+5.3

提交回复
热议问题