Skip to content
Advertisement

Unable to locate factory for [LaravelPassportClient]

I have a laravel app with passport installed to manage api auth. I’m trying to write some tests but I’m unable to create a Client as per the docs on laravel. I’ve googled similar SO answers but they all suggest using setUp and tearDown methods which I am doing. When I run the test I get

JavaScript

How can I get this to work?

Below is my code. I have included the Client model from the passport package and I am using the setUp and tearDown methods as suggested in similar SO answers.

I’ve tried composer dump-autoload and php artisan config:cache.

JavaScript

Advertisement

Answer

passport client factory should be existed on publishing …

if it did not …. make it your self:

from : here

JavaScript
User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement