diff --git a/src/HasApiTokens.php b/src/HasApiTokens.php index d59fad3..48a5e8f 100644 --- a/src/HasApiTokens.php +++ b/src/HasApiTokens.php @@ -21,7 +21,7 @@ trait HasApiTokens */ public function tokens() { - return $this->morphMany(Sanctum::$personalAccessTokenModel, 'tokenable'); + return $this->morphMany(Sanctum::$personalAccessTokenModel, 'tokenable')->chaperone(); } /**