Ignore migrations, pass credentials

This commit is contained in:
DaneEveritt 2022-05-22 17:01:39 -04:00
parent 56f15c15a1
commit be88e4e893
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
2 changed files with 6 additions and 3 deletions

View file

@ -19,13 +19,15 @@ class AuthServiceProvider extends ServiceProvider
Server::class => ServerPolicy::class,
];
/**
* Register any application authentication / authorization services.
*/
public function boot()
{
Sanctum::usePersonalAccessTokenModel(ApiKey::class);
$this->registerPolicies();
}
public function register()
{
Sanctum::ignoreMigrations();
}
}

View file

@ -2,6 +2,7 @@ import axios, { AxiosInstance } from 'axios';
import { store } from '@/state';
const http: AxiosInstance = axios.create({
withCredentials: true,
timeout: 20000,
headers: {
'X-Requested-With': 'XMLHttpRequest',