title: After add encryption function "The payload is invalid" error shows up
body: <p>I use this gentleman's todo app and it works perfectly.</p>
  
  <p><a href="https://github.com/ericlie/Laravel-Simple-Todo-List#setting-up" rel="nofollow noreferrer">https://github.com/ericlie/Laravel-Simple-Todo-List#setting-up</a></p>
  
  <p>I tried to add Encryption and Decryption into this app using this gentleman's answer.</p>
  
  <p><a href="https://stackoverflow.com/questions/49503230/encryption-and-decryption-in-laravel-5">Encryption and decryption in Laravel 5</a></p>
  
  <p>But I am getting this error after adding the code-</p>
  
  <blockquote>
    <p>The payload is invalid</p>
  </blockquote>
  
  <p>I've been searching and trying the encryption and decryption functions but it always shows the same error.</p>
  
  <p>Could anyone tell me what is wrong with my code?</p>
  
  <p>I would like to use encryption and decryption on Task table's <strong>task</strong> column and "users" tables <strong>name</strong> and <strong>email</strong> columns.</p>
  
  <p>Here is my controller of task-</p>
  
  <pre><code>class Task extends Model
  {
      // I add this 
      use EncryptsAttributes;
      protected $encrypts = ['task'];
  
     // original code
      public function user()
      {
          return $this-&gt;belongsTo(User::class, 'user_id');
      }
  }
  </code></pre>