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, Server::class => ServerPolicy::class,
]; ];
/**
* Register any application authentication / authorization services.
*/
public function boot() public function boot()
{ {
Sanctum::usePersonalAccessTokenModel(ApiKey::class); Sanctum::usePersonalAccessTokenModel(ApiKey::class);
$this->registerPolicies(); $this->registerPolicies();
} }
public function register()
{
Sanctum::ignoreMigrations();
}
} }

View File

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