title: Laravel laratrust attache a role to a new user when registering
body: <p>Well i am using laratrust to handle roles and permissions for my application. </p>
  
  <p>I want to attach a role to a user when registering but after reading laratrust documentation i cant seem to figure out whats the issue!</p>
  
  <p>Here is my code </p>
  
  <pre><code> public function register(Request $request) { 
       $this-&gt;validation($request); 
       User::create([ 
                 'name' =&gt; $request-&gt;name,
                  'lastname' =&gt; $request-&gt;lastname, 
                  'email' =&gt; $request-&gt;email, 
                  'password' =&gt; bcrypt($request-&gt;password)
       ]);
  
        $user-&gt;attachRole($employer);
  
        Auth::attempt([
                 'email' =&gt;$request-&gt;email, 
                 'password' =&gt; $request-&gt;password]);
               // Authentication passed...
        return redirect('/'); 
    }
  </code></pre>
  
  <p>With the above i get error unknown query builder attacheRole!</p>
  
  <p>Any suggestions? </p>