Skip to content

Commit be88e4e

Browse files
committed
Ignore migrations, pass credentials
1 parent 56f15c1 commit be88e4e

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

app/Providers/AuthServiceProvider.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,15 @@ class AuthServiceProvider extends ServiceProvider
1919
Server::class => ServerPolicy::class,
2020
];
2121

22-
/**
23-
* Register any application authentication / authorization services.
24-
*/
2522
public function boot()
2623
{
2724
Sanctum::usePersonalAccessTokenModel(ApiKey::class);
2825

2926
$this->registerPolicies();
3027
}
28+
29+
public function register()
30+
{
31+
Sanctum::ignoreMigrations();
32+
}
3133
}

resources/scripts/api/http.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import axios, { AxiosInstance } from 'axios';
22
import { store } from '@/state';
33

44
const http: AxiosInstance = axios.create({
5+
withCredentials: true,
56
timeout: 20000,
67
headers: {
78
'X-Requested-With': 'XMLHttpRequest',

0 commit comments

Comments
 (0)