title: Laravel Passport Print Personal Access Token
body: <p>I am using Laravel's passport package to provide token based authentication to my rest api. Right now, I am using <a href="https://laravel.com/docs/5.3/passport#personal-access-tokens">personal access token</a> concept to generate the access token.</p>
  
  <p>To generate an access token for a single user, I am using below code to generate a token with name '<strong>android</strong>'.</p>
  
  <pre><code>    $user = User::create([
                  'name' =&gt; $data['name'],
                  'email' =&gt; $data['email'],
                  'password' =&gt; bcrypt($data['password']),
              ]);
  
      // Here the access token will be stored in $token variable.
      $token = $user-&gt;createToken('android')-&gt;accessToken;
  
      // Now the $token value would be something like
     //eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6ImMyNjI3YzU0YjFhNWIxZTFlMTdkODhmZTk1NzhjNzAzY2QyMTU0MzhlOD...
  </code></pre>
  
  <p>Later on I want to display the <strong>personal access token</strong> on my admin dashboard which I am facing difficulty in getting the generated token again. Tried below code, but couldn't able to get the access token.</p>
  
  <pre><code>$user = User::find(1)
  dd($user-&gt;tokens())
  </code></pre>
  
  <p>I also tried using passport vue elements, but it is displaying just the access token name, not the actual token.</p>
  
  <pre><code>&lt;passport-personal-access-tokens&gt;&lt;/passport-personal-access-tokens&gt;
  </code></pre>
  
  <p>Please help me getting this solved.</p>
  
  <p>Thank you</p>