public function name()
{
if (is_null($this->table)) {
$this->table = $this->model->getTable();
if (is_null($this->table)) {
$database = Connection::config($this->connection);
$this->table = $database['prefix'] . Inflector::underscore(get_class($this->model));
}
}
return $this->table;
}