xxxxxxxxxx
$item = new Item;
$table = $item->getTable();
print_r($table);
xxxxxxxxxx
class BaseModel extends Eloquent {
public static function getTableName()
{
return with(new static)->getTable();
}
}
class User extends BaseModel {
}
User::getTableName();