mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-14 17:44:17 -08:00
17 lines
281 B
PHP
17 lines
281 B
PHP
|
<?php
|
||
|
|
||
|
namespace Tests\Support;
|
||
|
|
||
|
use Illuminate\Contracts\Auth\Authenticatable;
|
||
|
use Laravel\Passport\Passport;
|
||
|
|
||
|
trait InteractsWithAuthentication
|
||
|
{
|
||
|
protected function actingAsForApi(Authenticatable $user)
|
||
|
{
|
||
|
Passport::actingAs($user);
|
||
|
|
||
|
return $this;
|
||
|
}
|
||
|
}
|