mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-24 09:50:39 +00:00
Personal Access Token page implementation
This commit is contained in:
@@ -17,15 +17,13 @@ class PersonalAccessTokenTest extends TestCase
|
||||
$user = User::factory(User::class)
|
||||
->create();
|
||||
|
||||
$response = $this
|
||||
$this
|
||||
->actingAs($user)
|
||||
->postJson('/api/user/token/create', [
|
||||
'name' => 'token',
|
||||
])
|
||||
->assertStatus(201);
|
||||
|
||||
dd(json_decode($response->content(), true));
|
||||
|
||||
$this->assertDatabaseHas('personal_access_tokens', [
|
||||
'tokenable_id' => $user->id,
|
||||
'name' => 'token',
|
||||
|
||||
Reference in New Issue
Block a user