title: setPasswordAttribute in Laravel
body: <p>I was trying to seed DB in Laravel with the given data, and i saw a snippet about HASH::make, mentioning it in The Model not in Seeder file.. </p>
  
  <p>TaskerTableSeeder.php</p>
  
  <pre><code>class TaskerTableSeeder extends Seeder{
  
      public function run(){
  
          Tasker::truncate();
  
          Tasker::create([
              'username'=&gt;'junni',
              'email'=&gt; 'junni@gmail.com',
              'password'=&gt; 'Junaid'
              ]);
          Tasker::create([
              'username'=&gt;'test',
              'email'=&gt; 'test@gmail.com',
              'password'=&gt; 'Test'
              ]);
          Tasker::create([
              'username'=&gt;'poni',
              'email'=&gt;'poni@loni.com',
              'password'=&gt;'Poni'
              ]);
  
      }
  }
  </code></pre>
  
  <p>and I Put that Code in my Tasker Model for Hash::make </p>
  
  <pre><code>class Tasker extends Eloquent{
  
      public function setPasswordAttribute($value){
  
          $this-&gt;attributes['password'] = Hash::make($value);
      }
  
  }
  </code></pre>
  
  <p>it is the way to make your password HASH encrypted, but i didn't find any information about setPasswordAttribute Function in Laravel Documentation.. and how many other attributes are there for which we can use such type of Functions. </p>