title: How remember_token is generated by laravel automatically? Can we do the same in codeigniter?
body: <p>I am new in MVC. Can anyone tell me where the function for remember_token is written in laravel?
  I saw in Blueprint and found this function:</p>
  <pre><code>public function rememberToken()
  {
    return $this-&gt;string('remember_token', 100)-&gt;nullable();
  }
  </code></pre>
  <p>which is just a function to define a field in database. I also saw in Contracts/Auth/Authenticable.php but here also i found a bunch of interfaces defined along with the getremembertoken and setremembertoken as:</p>
  <pre><code>interface Authenticatable
  {
    public function getRememberToken();
    public function setRememberToken($value);
    public function getRememberTokenName();
  }
  </code></pre>
  <p>Where is the actual function written for generating token that is saved in database? Can anyone tell me please? And can I implement the similar function in codeigniter?</p>