Level 67
Have you tried artisan config:clear? also try composer dumpautoload
I'm attempting to remove Passport from my application. Here are the steps I've followed so far:
composer remove laravel/passport && composer update
\Laravel\Passport\Http\Middleware\CreateFreshApiToken::class from app/Http/Kernel.php
use Laravel\Passport\Passport; and Passport::routes(); from the boot() of app/Providers/AuthServiceProvider.php
use Laravel\Passport\HasApiTokens; and use HasApiTokens from app/User.php
['api']['driver'] to token in config/auth.php
public/js/app.js, resources/assets/js/components/passport, and removed passport references from resources/assets/js/app.js
php artisan cache:clear
I must have missed something somewhere, because I'm given the error
InvalidArgumentException: Auth driver [passport] for guard [api] is not defined.
If the full stack is required for debugging this issue, here it is (paste.laravel.io).
@Cronix I haven't tried that yet, no.
I have no idea if this is correct, but I changed:
Route::middleware('auth:api')->group(function () {
to
Route::middleware('auth')->group(function () {
Is this acceptable? Using PostMan, I don't appear to be able to access any restricted content unless I'm logged in.
Please or to participate in this conversation.