Skip to content
This repository was archived by the owner on Feb 18, 2023. It is now read-only.

Commit 28fbaa1

Browse files
author
joselfonseca
committed
clean up and set the default guard to API
1 parent b122def commit 28fbaa1

File tree

5 files changed

+6
-1288
lines changed

5 files changed

+6
-1288
lines changed

app/Http/Controllers/ApiDocsController.php

Lines changed: 0 additions & 17 deletions
This file was deleted.

config/auth.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
*/
1515

1616
'defaults' => [
17-
'guard' => 'web',
17+
'guard' => 'api',
1818
'passwords' => 'users',
1919
],
2020

@@ -36,13 +36,13 @@
3636
*/
3737

3838
'guards' => [
39-
'web' => [
40-
'driver' => 'session',
39+
'api' => [
40+
'driver' => 'passport',
4141
'provider' => 'users',
4242
],
4343

44-
'api' => [
45-
'driver' => 'passport',
44+
'web' => [
45+
'driver' => 'session',
4646
'provider' => 'users',
4747
],
4848
],

0 commit comments

Comments
 (0)