Laravel Config Auth missing api on guards

Viewed 197

This is located in config / auth.php

'guards' => [
    'web' => [
        'driver' => 'session',
        'provider' => 'users',
    ],
],

Please take a look at these codes above, codes are missing after I install Laravel

laravel new projectname

then I expect this should happen.

'guards' => [
    'web' => [
        'driver' => 'session',
        'provider' => 'users',
    ],

    'api' => [
        'driver' => 'token',
        'provider' => 'users',
        'hash' => false,
    ],
],

but the api part is gone. Can somebody help? I'm new to Laravel and still exploring its updates. Thank you.

1 Answers

please run this command.

composer require laravel/ui
php artisan ui vue --auth
php artisan migrate
Related