title: How to change Laravel model's table name
body: <p>I am using Laravel 5 and have changed the name of a database table from  &quot;domain_related_settings&quot; to &quot;DomainRelatedSettings&quot; by rolling back all migrations, changing the specific migration, and running them again. The new table name is reflected in the database.</p>
  <p>But when i use the corresponding model <code>DomainRelatedSetting</code> in a statement like this:</p>
  <pre class="lang-php prettyprint-override"><code>$domainSettings = DomainRelatedSetting::where('hostname', 'foo')-&gt;first();
  </code></pre>
  <p>it gives the following error:</p>
  <pre class="lang-none prettyprint-override"><code>SQLSTATE[42S02]: Base table or view not found:
  1146 Table 'databasename.domain_related_settings' doesn't exist
  (SQL: select * from `domain_related_settings` where `hostname` = foo limit 1)
  </code></pre>
  <p>So it is still using the old table name. How can I ensure the new table name is used?</p>