title: Laravel 5 Auth - custom table with users
body: <p>I'm learning Laravel auth now and I have small problem. I read some pages from Google about this mechanism and I'm using</p>
  
  <pre><code>Auth::attempt(['email'=&gt;$request['email'],'password'=&gt;$request['password']]);
  </code></pre>
  
  <p>Laravel gives me this error:</p>
  
  <pre><code>SQLSTATE[42S02]: Base table or view not found: 1146 Table 'base.users' doesn't exist (SQL: select * from `users` where `email` = admin@domain.com limit 1)
  </code></pre>
  
  <p>In fact I don't have <code>users</code> table in my database, I'm using name <code>accounts</code>. How can I change default table in auth?</p>
  
  <p>And additional question is: when I put data to Auth::attempt() data will changed to SQL query and all data will be get from base? How can I add more data than I get in base? For simple I have table <code>ban</code> which this field have number of days when ban goes end. And I want to add field <code>isbanned</code> which get TRUE/FALSE data. If <code>ban</code>>0 will be TRUE, otherwise FALSE.</p>