JeffreyWay/Laravel-Test-Helpers — pull request #57 by dwightwatson (2014-03-08 03:34:12+00:00)
Title: Use Eloquent method to fetch table name

The current method of inferring the table name from the class name works using the same code as Eloquent does, but it doesn't support the ability to override the table name. By setting `protected $table` on a model you are able to set a custom table.

This fix makes use of the `getTable()` method on the Eloquent model which will first check to see if the table name has been manually set and then, if necessary, infer the table name from the class name. This patch also removes two protected functions which are no longer used.