protected $table = 'DomainRelatedSettings';
protected $table = 'table_name';
//$this refer to model that you are in that
$this->getTable();
$model->getTable();
$item = new Item;
$table = $item->getTable();
print_r($table);
class BaseModel extends Eloquent {
public static function getTableName()
{
return with(new static)->getTable();
}
}
class User extends BaseModel {
}
User::getTableName();