xxxxxxxxxx
//$this refer to model that you are in that
$this->getTable();
xxxxxxxxxx
class BaseModel extends Eloquent {
public static function getTableName()
{
return with(new static)->getTable();
}
}
class User extends BaseModel {
}
User::getTableName();