Level 7
which package?
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I am using this package for token authentication in Laravel. In my controller I would like to check if the token exists
public function show(Article $article)
{
$article->media = $article->media;
$article->externalMedia;
if (JWTAuth token exists) {
$this->addUserSpecificData($article);
}
return $article;
}
But not sure how to do this?
Please or to participate in this conversation.