Laravel Passport with Laravel 10 Route #47513
Unanswered
kingrootid
asked this question in
Q&A
Replies: 2 comments
-
Hello, do you use Passport v11? Maybe look here: |
Beta Was this translation helpful? Give feedback.
0 replies
-
As far as I know, this function no longer needs to be registered, when installing the library, routes are generated automatically, you can check this in Artisan |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello
i want to ask about registering route laravel passport with laravel 10
i write on
App/Providers/AuthServiceProvide.php
on function Boot
Passport::routes();
and i got the error
Call to undefined method Laravel\Passport\Passport::routes()
at app/Providers/AuthServiceProvider.php:31
27▕ */
28▕ public function boot(): void
29▕ {
30▕ $this->registerPolicies();
➜ 31▕ Passport::routes();
32▕
33▕ Passport::personalAccessTokensExpireIn(now()->addDays(1));
34▕ }
35▕ }
8 [internal]:0
Illuminate\Foundation\Application::Illuminate\Foundation{closure}(Object(App\Providers\AuthServiceProvider))
+5 vendor frames
14 artisan:35
Illuminate\Foundation\Console\Kernel::handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
Beta Was this translation helpful? Give feedback.
All reactions