I'm new to api authentication
(passport) in laravel.
Is it possible to guard api routes using
$this->middleware('auth:api');
even if used the laravel built in authentication
(php artisan make:auth)
?
I'm new to api authentication
(passport) in laravel.
Is it possible to guard api routes using
$this->middleware('auth:api');
even if used the laravel built in authentication
(php artisan make:auth)
?
you can guard your api with
auth:api
, just need to change the api guard driver to passport inconfig/auth.php