title: Laravel 5.3 - Best way to implement Entrust role on signup?
body: <p>I'm working with <code>Laravel 5.3</code> and I'm trying to set a role when someone signs up, I've used the <code>Zizaco Entrust</code> library.</p>
  
  <p>I'm unsure on the best way to achieve something like this.</p>
  
  <p>I tried to do this inside <code>RegisterController</code>'s <code>create</code> method like below:</p>
  
  <pre><code>protected function create(array $data)
  {
      return User::create([
          'name' =&gt; $data['name'],
          'email' =&gt; $data['email'],
          'password' =&gt; bcrypt($data['password']),
      ]);
  
      $user = User::where('email', '=', $data['email'])-&gt;first();
  
      // role attach alias
      $user-&gt;attachRole($employee);
  }
  </code></pre>
  
  <p>But obviously that's not right. So I'm a bit unsure on what the best practice is with this sort of thing.</p>